diff options
author | Carl Lerche <carllerche@mac.com> | 2010-04-26 15:59:50 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-04-26 15:59:50 -0700 |
commit | 8f8a61770e8af20bd9fb4e4fd72eca93c728fb8f (patch) | |
tree | 550e5d0fec2c1aa046fe9c7e37d789ba97cb379d /lib | |
parent | 6d08372cc6bcb1264e4b9dd910bcafff86232b5d (diff) | |
download | bundler-8f8a61770e8af20bd9fb4e4fd72eca93c728fb8f.tar.gz |
Remove more unused methods
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/environment.rb | 11 | ||||
-rw-r--r-- | lib/bundler/installer.rb | 2 |
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/bundler/environment.rb b/lib/bundler/environment.rb index b71e7032..c80d4a48 100644 --- a/lib/bundler/environment.rb +++ b/lib/bundler/environment.rb @@ -9,14 +9,11 @@ module Bundler @definition = definition end + # TODO: Remove this method. It's used in cli.rb still def index @definition.index end - def remote_index - @definition.remote_index - end - def requested_specs @requested_specs ||= begin groups = @definition.groups - Bundler.settings.without @@ -33,11 +30,6 @@ module Bundler @definition.dependencies end - # TODO: Remove this method - def resolved_dependencies - @definition.resolver_dependencies - end - def lock Bundler.ui.info("The bundle is already locked, relocking.") if locked? sources.each { |s| s.lock if s.respond_to?(:lock) } @@ -49,6 +41,7 @@ module Bundler private + # TODO: remote this method def sources @definition.sources end diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb index 0df903c2..eb2ab7a0 100644 --- a/lib/bundler/installer.rb +++ b/lib/bundler/installer.rb @@ -9,7 +9,7 @@ module Bundler end def run(options) - if resolved_dependencies.empty? + if dependencies.empty? Bundler.ui.warn "The Gemfile specifies no dependencies" return end |