]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Remove dead code.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 26 Jul 2011 23:29:16 +0000 (16:29 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 26 Jul 2011 23:29:16 +0000 (16:29 -0700)
s3tests/common.py

index 50edb31e4b9f9a75eeaa0a067d2abac0abad53c2..1148bbaec16c9c3d7cce3d711da9b60ef9b1c942 100644 (file)
@@ -4,22 +4,12 @@ import itertools
 import os
 import random
 import string
-import sys
 import yaml
 
 s3 = bunch.Bunch()
 config = bunch.Bunch()
 prefix = ''
 
-# For those scripts that use a context, these are pretty univerally needed.
-context = bunch.Bunch(
-    bucket=None,
-
-    # Save stdout/stderr in case they get fudged with.
-    real_stdout=sys.stdout,
-    real_stderr=sys.stderr,
-)
-
 bucket_counter = itertools.count(1)
 key_counter = itertools.count(1)
 
@@ -179,11 +169,3 @@ def get_new_bucket(connection=None):
 
 def teardown():
     nuke_prefixed_buckets()
-
-def fill_pools(*args):
-    for pool in args:
-        while not pool.full():
-            pool.spawn()
-
-def get_next_key(bucket=None):
-    return bucket.new_key("seqkey-{num}".format(num=next(key_counter)))