Patchwork D1689: statprof: remove a line of deadcode

login
register
mail settings
Submitter phabricator
Date Dec. 14, 2017, 8:18 p.m.
Message ID <differential-rev-PHID-DREV-amtlk6lp27h2nfgsru3u-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26284/
State Superseded
Headers show

Comments

phabricator - Dec. 14, 2017, 8:18 p.m.
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




To: alex_gaynor, durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Dec. 14, 2017, 8:53 p.m.
durin42 accepted this revision.
durin42 added a comment.
This revision is now accepted and ready to land.


  deleted code is best code

REPOSITORY
  rHG Mercurial

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

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

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

Patch

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)