delta-find: drop some dead debug code
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 23 Nov 2023 20:09:34 +0100
changeset 51348 d58e14262587
parent 51347 555826073625
child 51349 cc806f20d756
delta-find: drop some dead debug code Seems like it was never put to use, so lets simply remove it for now.
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Sun Jan 07 03:34:27 2024 +0100
+++ b/mercurial/revlogutils/deltas.py	Thu Nov 23 20:09:34 2023 +0100
@@ -1020,19 +1020,14 @@
         # This logic only applies to general delta repositories and can be
         # disabled through configuration. Disabling reuse source delta is
         # useful when we want to make sure we recomputed "optimal" deltas.
-        debug_info = None
         if (
             self.cachedelta is not None
             and self.cachedelta[2] > DELTA_BASE_REUSE_NO
         ):
             # Assume what we received from the server is a good choice
             # build delta will reuse the cache
-            if debug_info is not None:
-                debug_info['cached-delta.tested'] += 1
             good = yield (self.cachedelta[0],)
             if good is not None:
-                if debug_info is not None:
-                    debug_info['cached-delta.accepted'] += 1
                 yield None
                 return
         groups = self._raw_groups()
@@ -1072,10 +1067,6 @@
                 )
                 good = yield children
 
-        if debug_info is not None:
-            if good is None:
-                debug_info['no-solution'] += 1
-
         yield None
 
     def _raw_groups(self):