Skip to content

Commit

Permalink
Remove now unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jul 31, 2021
1 parent 630d29c commit d74830d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli/check.rb
Expand Up @@ -15,7 +15,7 @@ def run
definition.validate_runtime!

begin
definition.resolve_only_locally!
definition.resolve_with_cache!
not_installed = definition.missing_specs
rescue GemNotFound, VersionConflict
Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies."
Expand Down
6 changes: 0 additions & 6 deletions bundler/lib/bundler/definition.rb
Expand Up @@ -166,12 +166,6 @@ def multisource_allowed?
@multisource_allowed
end

def resolve_only_locally!
@remote = false
sources.local_only!
resolve
end

def resolve_with_cache!
sources.cached!
resolve
Expand Down
2 changes: 0 additions & 2 deletions bundler/lib/bundler/source.rb
Expand Up @@ -36,8 +36,6 @@ def can_lock?(spec)

def local!; end

def local_only!; end

def cached!; end

def remote!; end
Expand Down
6 changes: 0 additions & 6 deletions bundler/lib/bundler/source/rubygems.rb
Expand Up @@ -26,12 +26,6 @@ def initialize(options = {})
Array(options["remotes"]).reverse_each {|r| add_remote(r) }
end

def local_only!
@specs = nil
@allow_local = true
@allow_remote = false
end

def local!
return if @allow_local

Expand Down
4 changes: 0 additions & 4 deletions bundler/lib/bundler/source_list.rb
Expand Up @@ -136,10 +136,6 @@ def expired_sources?(replacement_sources)
different_sources?(lock_sources, replacement_sources)
end

def local_only!
all_sources.each(&:local_only!)
end

def cached!
all_sources.each(&:cached!)
end
Expand Down

0 comments on commit d74830d

Please sign in to comment.