From: Brian Warner Date: Wed, 18 Apr 2007 04:22:32 +0000 (-0700) Subject: encode.py: remove unused pad() code X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~68 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/statistics?a=commitdiff_plain;h=85b36e348b58ad8ebd771697acdbae8c377abdaa;p=tahoe-lafs%2Ftahoe-lafs.git encode.py: remove unused pad() code --- diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 3731999d..9cdb8751 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -58,17 +58,6 @@ hash tree is put into the URI. """ -def pad(s, l, c='\x00'): - """ - Return string s with enough chars c appended to it to make its length be - an even multiple of l bytes. - - @param s the original string - @param l the length of the resulting padded string in bytes - @param c the pad char - """ - return s + c * mathutil.pad_size(len(s), l) - KiB=1024 MiB=1024*KiB GiB=1024*MiB