commit 53ca76caca4eb176a3f18f10711cb09b7afd35a6 from: Jelmer Vernooij date: Fri Jan 13 18:31:56 2023 UTC Remove unused get_raw_delta. commit - 52d9b7b44f0ba4d1d3dffad87cff38f67b74ec83 commit + 53ca76caca4eb176a3f18f10711cb09b7afd35a6 blob - 37514791e08bab20fa7361bd80c5e669b39fdc0c blob + ef2371ee81fde03736dc1bf438f8f71a4b73f04c --- dulwich/pack.py +++ dulwich/pack.py @@ -2231,22 +2231,6 @@ class Pack(object): obj_type, obj = self.data.get_object_at(offset) 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."""