]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
codec: remove some unused debugging code
authorBrian Warner <warner@lothar.com>
Sat, 7 Apr 2007 03:55:37 +0000 (20:55 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 7 Apr 2007 03:55:37 +0000 (20:55 -0700)
src/allmydata/codec.py

index 2e9efa8488e92121f7dca6b47f91c243b771a453..29c22cf7ceed64911d861fdf5e12a122981a1ff2 100644 (file)
@@ -7,20 +7,6 @@ from allmydata.util.assertutil import precondition
 from allmydata.interfaces import ICodecEncoder, ICodecDecoder
 import fec
 
-def netstring(s):
-    return "%d:%s," % (len(s), s)
-
-from base64 import b32encode
-def ab(x): # debuggery
-    if len(x) >= 3:
-        return "%s:%s" % (len(x), b32encode(x[-3:]),)
-    elif len(x) == 2:
-        return "%s:%s" % (len(x), b32encode(x[-2:]),)
-    elif len(x) == 1:
-        return "%s:%s" % (len(x), b32encode(x[-1:]),)
-    elif len(x) == 0:
-        return "%s:%s" % (len(x), "--empty--",)
-
 
 class ReplicatingEncoder(object):
     implements(ICodecEncoder)