summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ipaddress.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/ipaddress.rb b/lib/ipaddress.rb
index 96ac9f5..af4d9bd 100644
--- a/lib/ipaddress.rb
+++ b/lib/ipaddress.rb
@@ -276,18 +276,3 @@ end # module IPAddress
def IPAddress(str)
IPAddress::parse str
end
-
-#
-# Compatibility with Ruby 1.8
-#
-if RUBY_VERSION =~ /^1\.8/
- class Hash # :nodoc:
- alias :key :index
- end
- module Math # :nodoc:
- def Math.log2(n)
- log(n) / log(2)
- end
- end
-end
-