From 245d31840980398f9f20d47a7b3c83e9a65673c7 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 6 Apr 2007 20:55:37 -0700 Subject: [PATCH] codec: remove some unused debugging code --- src/allmydata/codec.py | 14 -------------- 1 file changed, 14 deletions(-) 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) -- 2.45.2