From f62a544b93b96d49afabe86a0d1b34270457eac4 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Thu, 7 Jun 2007 22:13:18 -0700
Subject: [PATCH] remove several leftover defintions of netstring()

---
 src/allmydata/download.py         | 3 ---
 src/allmydata/encode.py           | 3 ---
 src/allmydata/test/test_encode.py | 3 ---
 src/allmydata/upload.py           | 3 ---
 4 files changed, 12 deletions(-)

diff --git a/src/allmydata/download.py b/src/allmydata/download.py
index 1d8729cf..ebbce169 100644
--- a/src/allmydata/download.py
+++ b/src/allmydata/download.py
@@ -569,9 +569,6 @@ class FileDownloader:
         return self._output.finish()
 
 
-def netstring(s):
-    return "%d:%s," % (len(s), s)
-
 class FileName:
     implements(IDownloadTarget)
     def __init__(self, filename):
diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py
index b905c466..688c8096 100644
--- a/src/allmydata/encode.py
+++ b/src/allmydata/encode.py
@@ -10,9 +10,6 @@ from allmydata.util.assertutil import _assert
 from allmydata.codec import CRSEncoder
 from allmydata.interfaces import IEncoder
 
-def netstring(s):
-    return "%d:%s," % (len(s), s)
-
 """
 
 The goal of the encoder is to turn the original file into a series of
diff --git a/src/allmydata/test/test_encode.py b/src/allmydata/test/test_encode.py
index 07f0f058..822c4c8c 100644
--- a/src/allmydata/test/test_encode.py
+++ b/src/allmydata/test/test_encode.py
@@ -9,9 +9,6 @@ from allmydata.uri import pack_uri
 from allmydata.Crypto.Cipher import AES
 from cStringIO import StringIO
 
-def netstring(s):
-    return "%d:%s," % (len(s), s)
-
 class FakePeer:
     def __init__(self, mode="good"):
         self.ss = FakeStorageServer(mode)
diff --git a/src/allmydata/upload.py b/src/allmydata/upload.py
index b63b1a39..48b03f54 100644
--- a/src/allmydata/upload.py
+++ b/src/allmydata/upload.py
@@ -254,9 +254,6 @@ class FileUploader:
                         )
 
 
-def netstring(s):
-    return "%d:%s," % (len(s), s)
-
 class FileName:
     implements(IUploadable)
     def __init__(self, filename):
-- 
2.45.2