D1689: statprof: remove a line of deadcode

alex_gaynor (Alex Gaynor) phabricator at mercurial-scm.org
Thu Dec 14 20:18:43 UTC 2017


alex_gaynor created this revision.
alex_gaynor added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  unused-code (bookmark) on default (branch)

REVISION DETAIL
  https://phab.mercurial-scm.org/D1689

AFFECTED FILES
  mercurial/statprof.py

CHANGE DETAILS

diff --git a/mercurial/statprof.py b/mercurial/statprof.py
--- a/mercurial/statprof.py
+++ b/mercurial/statprof.py
@@ -815,7 +815,6 @@
         tos = sample.stack[0]
         name = tos.function
         path = simplifypath(tos.path)
-        category = '%s:%d' % (path, tos.lineno)
         stack = tuple((('%s:%d' % (simplifypath(frame.path), frame.lineno),
                         frame.function) for frame in sample.stack))
         qstack = collections.deque(stack)



To: alex_gaynor, durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list