[PATCH 1/2] fetch2: get rid of unused FetchMethod.urls property

<[email protected]>
Newsgroups org.openembedded.lists.bitbake-devel
Message-ID <[email protected]>
From: Chris Laplante <[email protected]>

It was never set by __init__ anyway.

Signed-off-by: Chris Laplante <[email protected]>
---
 lib/bb/fetch2/__init__.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index b6006fa38..4a3119ad0 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1438,9 +1438,6 @@ class FetchData(object):
 class FetchMethod(object):
     """Base class for 'fetch'ing data"""
 
-    def __init__(self, urls=None):
-        self.urls = []
-
     def supports(self, urldata, d):
         """
         Check to see if this fetch class supports a given url.
@@ -1501,14 +1498,6 @@ class FetchMethod(object):
             relpath = relpath[1:]
         return relpath
 
-    def setUrls(self, urls):
-        self.__urls = urls
-
-    def getUrls(self):
-        return self.__urls
-
-    urls = property(getUrls, setUrls, None, "Urls property")
-
     def need_update(self, ud, d):
         """
         Force a fetch, even if localpath exists?
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.