Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from braiden-vasco/remove_check_for_circular_pa…
Browse files Browse the repository at this point in the history
…radox

Remove check for circular paradox
  • Loading branch information
Braiden Vasco committed Oct 29, 2015
2 parents 70b8dbd + 939dc29 commit 54b56a3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/typeclass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def >(other)
end
end

def <(other)
!(self > other)
end

def collision?(other)
self > other && other > self
end
Expand Down Expand Up @@ -144,10 +140,9 @@ def self.get_index(typeclass, new_params)

fail TypeError if current_params.collision? new_params

if index.nil?
index = i if current_params > new_params
else
fail TypeError if current_params < new_params
if index.nil? && current_params > new_params
index = i
break
end
end

Expand Down

0 comments on commit 54b56a3

Please sign in to comment.