Browse Source

Remove unused get_raw_delta.

Jelmer Vernooij 2 years ago
parent
commit
53ca76caca
1 changed files with 0 additions and 16 deletions
  1. 0 16
      dulwich/pack.py

+ 0 - 16
dulwich/pack.py

@@ -2232,22 +2232,6 @@ class Pack(object):
         type_num, chunks = self.resolve_object(offset, obj_type, obj)
         return type_num, b"".join(chunks)
 
-    def get_raw_delta(self, sha1):
-        """Get raw decompressed delta data chunks for a given SHA1.
-        Convert OFS_DELTA objects to REF_DELTA objects, like get_raw_unresolved() does.
-
-        Args:
-          sha1: SHA to return data for
-        Returns: Tuple with pack object type, delta base (if applicable),
-            list of data chunks
-        """
-        offset = self.index.object_index(sha1)
-        (obj_type, delta_base, chunks) = self.data.get_decompressed_data_at(offset)
-        if obj_type == OFS_DELTA:
-            delta_base = sha_to_hex(self.index.object_sha1(offset - delta_base))
-            obj_type = REF_DELTA
-        return (obj_type, delta_base, chunks)
-
     def __getitem__(self, sha1):
         """Retrieve the specified SHA1."""
         type, uncomp = self.get_raw(sha1)