Commit 6a5eed46 authored by Kai Willadsen's avatar Kai Willadsen

Remove unused functions and some dead code from diffutil

svn path=/trunk/; revision=1232
parent 650ffe93
......@@ -16,16 +16,6 @@
import difflib
def _null_or_space(s):
return len(s.strip()) == 0
if 0:
def _not_equal(s):
return filter( lambda x: x[0]!="equal", s )
else:
def _not_equal(s):
return s
################################################################################
#
# Differ
......@@ -303,16 +293,3 @@ class Differ(object):
self.seqlength[i] = len(s)
yield 1
def main():
pass
# t0 = open("test/lao").readlines()
# tc = open("test/tzu").readlines()
# t1 = open("test/tao").readlines()
#
# thread0 = IncrementalSequenceMatcher(None, tc, t0).get_difference_opcodes()
# thread1 = IncrementalSequenceMatcher(None, tc, t1).get_difference_opcodes()
#
# texts = (t0,tc,t1)
if __name__=="__main__":
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment