Skip to content

Commit

Permalink
delete some useless code that was now uncovered
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Mar 18, 2015
1 parent 6dd0b43 commit e73997f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/hypothesis/searchstrategy/numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,8 @@ def simplify(self, value):
if value == self.lower_bound:
return
yield self.lower_bound
if value == self.upper_bound:
return
yield self.upper_bound
mid = (self.lower_bound + self.upper_bound) * 0.5
if value == mid:
return
yield mid


Expand Down
12 changes: 0 additions & 12 deletions src/hypothesis/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,3 @@ def __init__(self, seed):

def __repr__(self):
return 'RandomWithSeed(%s)' % (self.seed,)

def __hash__(self):
return hash(self.seed)

def __eq__(self, other):
return self is other or (
isinstance(other, RandomWithSeed) and
self.seed == other.seed
)

def __ne__(self, other):
return not self.__eq__(other)

0 comments on commit e73997f

Please sign in to comment.