[pypy-commit] pypy set-strategies: removed unused methods
l.diekmann
noreply at buildbot.pypy.org
Thu Nov 10 13:51:25 CET 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49211:88edfa6d5641
Date: 2011-10-11 13:51 +0200
http://bitbucket.org/pypy/pypy/changeset/88edfa6d5641/
Log: removed unused methods
diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -862,31 +862,6 @@
else:
return None
-# helper functions for set operation on dicts
-
-# XXX are these still needed?
-def _symmetric_difference_dict(space, ld, rd):
- result = newset(space)
- for w_key in ld:
- if w_key not in rd:
- result[w_key] = None
- for w_key in rd:
- if w_key not in ld:
- result[w_key] = None
- return result
-
-def _issubset_dict(ldict, rdict):
- if len(ldict) > len(rdict):
- return False
-
- for w_key in ldict:
- if w_key not in rdict:
- return False
- return True
-
-
-#end helper functions
-
def set_update__Set(space, w_left, others_w):
"""Update a set with the union of itself and another."""
for w_other in others_w:
More information about the pypy-commit
mailing list