Skip to content
Snippets Groups Projects

cache: Drop unused method get_stream

Compare and
1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
+ 0
4
@@ -31,10 +31,6 @@ class VaultCache:
sid = self._get_internal_id(bundle_type, swhid)
return self.objstorage.delete(hashutil.hash_to_bytes(sid))
def get_stream(self, bundle_type, swhid: CoreSWHID):
sid = self._get_internal_id(bundle_type, swhid)
return self.objstorage.get_stream(hashutil.hash_to_bytes(sid))
def is_cached(self, bundle_type, swhid: CoreSWHID):
sid = self._get_internal_id(bundle_type, swhid)
return hashutil.hash_to_bytes(sid) in self.objstorage
Loading