summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Sandström <mail+github@a16m.se>2023-05-07 21:18:26 +0200
committerAlexander Sandström <mail+github@a16m.se>2023-05-07 21:18:26 +0200
commitf67a344f10d8b79a59b41c4bf028430b4bc8fd61 (patch)
treebe45b504b408204c3b5492df2fbcbb08eca1d98c
parentc94ff01a4f665226d16693d37674bf003e9793b5 (diff)
downloadipaddress-monkey-patching.tar.gz
Remove monkeypatch for ruby 1.8monkey-patching
-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
-