summaryrefslogtreecommitdiff
path: root/lib/bundler/ui
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-01 12:11:36 -0300
committerSamuel Giddins <segiddins@segiddins.me>2016-07-05 15:11:19 -0300
commitd88627a8191644fb970cce2140f3c320f3101c32 (patch)
treecb4455357dafd59963eb2dc624353ae907ebe932 /lib/bundler/ui
parent56c3b82d5ee5f6577ded051a9778b9aeeae14ab7 (diff)
downloadbundler-d88627a8191644fb970cce2140f3c320f3101c32.tar.gz
Clean up outdated deprecation code
Diffstat (limited to 'lib/bundler/ui')
-rw-r--r--lib/bundler/ui/shell.rb9
-rw-r--r--lib/bundler/ui/silent.rb3
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