[pypy-svn] jitviewer default: Remove unneded function and it's test

fijal commits-noreply at bitbucket.org
Tue Jan 25 14:13:19 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r80:28173395ee84
Date: 2011-01-25 15:13 +0200
http://bitbucket.org/pypy/jitviewer/changeset/28173395ee84/

Log:	Remove unneded function and it's test

diff --git a/_jitviewer/test/test_loops.py b/_jitviewer/test/test_loops.py
--- a/_jitviewer/test/test_loops.py
+++ b/_jitviewer/test/test_loops.py
@@ -3,7 +3,7 @@
 from pypy.jit.metainterp.history import ConstInt, Const
 from _jitviewer.loops import parse, Bytecode, Function,\
      slice_debug_merge_points,\
-     adjust_bridges, parse_log_counts, cssclass
+     adjust_bridges, cssclass
 from _jitviewer.storage import LoopStorage
 import py
 
@@ -194,15 +194,6 @@
 12:0
 '''.split("\n")
 
-def test_parse_log_count():
-    class Loop(object):
-        pass
-    
-    loops = [Loop() for i in range(13)]
-    nums = parse_log_counts(LINES, loops)
-    assert nums[5] == 2000
-    assert loops[9].count == 2000
-
 def test_highlight_var():
     ops = parse('''
     [p0]

diff --git a/_jitviewer/loops.py b/_jitviewer/loops.py
--- a/_jitviewer/loops.py
+++ b/_jitviewer/loops.py
@@ -290,22 +290,6 @@
                 print >>out, "  ", source
             chunk.pretty_print(out)
 
-def parse_log_counts(input, loops):
-    if not input:
-        return
-    lines = input[-1].splitlines()
-    nums = []
-    i = 0
-    for line in lines:
-        if line:
-            num, count = line.split(':')
-            assert int(num) == i
-            count = int(count)
-            nums.append(count)
-            loops[i].count = count
-            i += 1
-    return nums
-
 def parse(input):
     return SimpleParser(input, None, {}, 'lltype', None,
                         nonstrict=True).parse()


More information about the Pypy-commit mailing list