From: Brian Warner Date: Sat, 7 Apr 2007 03:55:37 +0000 (-0700) Subject: codec: remove some unused debugging code X-Git-Url: https://git.rkrishnan.org/pf/content/en/frontends/vdrive?a=commitdiff_plain;h=245d31840980398f9f20d47a7b3c83e9a65673c7;p=tahoe-lafs%2Ftahoe-lafs.git codec: remove some unused debugging code --- diff --git a/src/allmydata/codec.py b/src/allmydata/codec.py index 2e9efa84..29c22cf7 100644 --- a/src/allmydata/codec.py +++ b/src/allmydata/codec.py @@ -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)