diff options
| author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-01 12:11:36 -0300 |
|---|---|---|
| committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-05 15:11:19 -0300 |
| commit | d88627a8191644fb970cce2140f3c320f3101c32 (patch) | |
| tree | cb4455357dafd59963eb2dc624353ae907ebe932 /lib/bundler/ui | |
| parent | 56c3b82d5ee5f6577ded051a9778b9aeeae14ab7 (diff) | |
| download | bundler-d88627a8191644fb970cce2140f3c320f3101c32.tar.gz | |
Clean up outdated deprecation code
Diffstat (limited to 'lib/bundler/ui')
| -rw-r--r-- | lib/bundler/ui/shell.rb | 9 | ||||
| -rw-r--r-- | lib/bundler/ui/silent.rb | 3 |
2 files changed, 1 insertions, 11 deletions
diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index 8db69c47d0..195bd56a5c 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -6,7 +6,7 @@ module Bundler class Shell LEVELS = %w(silent error warn confirm info debug).freeze - attr_writer :shell, :deprecation_messages + attr_writer :shell def initialize(options = {}) if options["no-color"] || !STDOUT.tty? @@ -15,7 +15,6 @@ module Bundler @shell = Thor::Base.shell.new @level = ENV["DEBUG"] ? "debug" : "info" @warning_history = [] - @deprecation_messages = Set.new end def add_color(string, color) @@ -36,12 +35,6 @@ module Bundler tell_me(msg, :yellow, newline) if level("warn") end - def deprecate(msg, newline = nil) - return if @deprecation_messages.include?(msg) - @deprecation_messages.add(msg) - tell_err("DEPRECATION: " + msg, :yellow, newline) - end - def error(msg, newline = nil) tell_me(msg, :red, newline) if level("error") end diff --git a/lib/bundler/ui/silent.rb b/lib/bundler/ui/silent.rb index 7e40749fe1..367eaa58c2 100644 --- a/lib/bundler/ui/silent.rb +++ b/lib/bundler/ui/silent.rb @@ -15,9 +15,6 @@ module Bundler def warn(message, newline = nil) end - def deprecate(message, newline = nil) - end - def error(message, newline = nil) end |
