summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2013-08-11 14:01:34 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2013-08-11 14:01:34 +0200
commit3b57eb0b9f05e88d8559f46654b6f3e2a59f3464 (patch)
tree8ec6fd0ff4d70225717cf91b48ca25e172432649
parent8e4fd67cafe0173dcaffc0628629038ddfb3c515 (diff)
downloadbundler-3b57eb0b9f05e88d8559f46654b6f3e2a59f3464.tar.gz
Remove useless code from GemHelpers#generic
-rw-r--r--lib/bundler/gem_helpers.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bundler/gem_helpers.rb b/lib/bundler/gem_helpers.rb
index 33437d6f22..2040604b78 100644
--- a/lib/bundler/gem_helpers.rb
+++ b/lib/bundler/gem_helpers.rb
@@ -7,8 +7,7 @@ module Bundler
[Gem::Platform.new('mswin32'), Gem::Platform.new('mswin32')],
[Gem::Platform.new('x64-mingw32'), Gem::Platform.new('x64-mingw32')],
[Gem::Platform.new('x86_64-mingw32'), Gem::Platform.new('x64-mingw32')],
- [Gem::Platform.new('mingw32'), Gem::Platform.new('x86-mingw32')],
- [Gem::Platform::RUBY, Gem::Platform.new('java')]
+ [Gem::Platform.new('mingw32'), Gem::Platform.new('x86-mingw32')]
]
def generic(p)
@@ -16,7 +15,7 @@ module Bundler
GENERIC_CACHE[p] ||= begin
_, found = GENERICS.find do |match, _generic|
- match.is_a?(Gem::Platform) && p.os == match.os && (!match.cpu || p.cpu == match.cpu)
+ p.os == match.os && (!match.cpu || p.cpu == match.cpu)
end
found || Gem::Platform::RUBY
end