Author: Alex Gaynor <[email protected]>
Branch: kill-single-impl-multimethods
Changeset: r46299:df06131a44f3
Date: 2011-08-05 16:38 -0700
http://bitbucket.org/pypy/pypy/changeset/df06131a44f3/
Log: Remove some dead code.
diff --git a/pypy/objspace/std/bytearraytype.py
b/pypy/objspace/std/bytearraytype.py
--- a/pypy/objspace/std/bytearraytype.py
+++ b/pypy/objspace/std/bytearraytype.py
@@ -2,7 +2,7 @@
from pypy.interpreter import gateway
from pypy.interpreter.argument import Signature
-from pypy.interpreter.baseobjspace import ObjSpace, Wrappable
+from pypy.interpreter.baseobjspace import Wrappable
from pypy.interpreter.buffer import RWBuffer
from pypy.interpreter.error import OperationError, operationerrfmt
from pypy.objspace.std import stringobject, slicetype
@@ -12,8 +12,8 @@
from pypy.objspace.std.model import registerimplementation
from pypy.objspace.std.multimethod import FailedToImplement
from pypy.objspace.std.register_all import register_all
-from pypy.objspace.std.sliceobject import W_SliceObject, normalize_simple_slice
-from pypy.objspace.std.stdtypedef import StdTypeDef, SMM
+from pypy.objspace.std.sliceobject import W_SliceObject
+from pypy.objspace.std.stdtypedef import StdTypeDef
from pypy.objspace.std.stringobject import W_StringObject
from pypy.objspace.std.stringtype import (str_decode, str_count, str_index,
str_rindex, str_find, str_rfind, str_replace, str_startswith, str_endswith,
@@ -23,8 +23,6 @@
str_zfill, str_join, str_split, str_rsplit, str_partition, str_rpartition,
str_splitlines, str_translate)
from pypy.objspace.std.tupleobject import W_TupleObject
-from pypy.rlib.debug import check_annotation
-from pypy.rlib.rarithmetic import intmask
from pypy.rlib.rstring import StringBuilder
from pypy.tool.sourcetools import func_with_new_name
@@ -422,10 +420,6 @@
data1 = [c for c in space.str_w(w_str)]
return W_BytearrayObject(data1 + data2)
-def inplace_add__Bytearray_Bytearray(space, w_bytearray1, w_bytearray2):
- list_extend__Bytearray_Bytearray(space, w_bytearray1, w_bytearray2)
- return w_bytearray1
-
def inplace_add__Bytearray_ANY(space, w_bytearray1, w_iterable2):
w_bytearray1.data += space.bufferstr_new_w(w_iterable2)
return w_bytearray1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit