1
0
Эх сурвалжийг харах

Remove Collection.has

It's the same as BaseCollection.has
Unrud 9 жил өмнө
parent
commit
5ccfe16372

+ 0 - 3
radicale/storage.py

@@ -633,9 +633,6 @@ class Collection(BaseCollection):
             time.gmtime(os.path.getmtime(path)))
             time.gmtime(os.path.getmtime(path)))
         return Item(self, vobject.readOne(text), href, last_modified)
         return Item(self, vobject.readOne(text), href, last_modified)
 
 
-    def has(self, href):
-        return self.get(href) is not None
-
     def upload(self, href, vobject_item):
     def upload(self, href, vobject_item):
         if not is_safe_filesystem_path_component(href):
         if not is_safe_filesystem_path_component(href):
             raise UnsafePathError(href)
             raise UnsafePathError(href)