From 25b7a26a77a9ac5d1293d4af4737ef865b05c708 Mon Sep 17 00:00:00 2001 From: Rob Gleeson Date: Fri, 6 May 2011 18:51:23 +0100 Subject: [PATCH] Remove CommandHelpers#no_color, as it is implemented in Text --- lib/pry/helpers/command_helpers.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/pry/helpers/command_helpers.rb b/lib/pry/helpers/command_helpers.rb index be84ad62..247689ee 100644 --- a/lib/pry/helpers/command_helpers.rb +++ b/lib/pry/helpers/command_helpers.rb @@ -58,14 +58,6 @@ class Pry text.split.drop(1).join(' ') end - # turn off color for duration of block - def no_color(&block) - old_color_state = Pry.color - Pry.color = false - yield - ensure - Pry.color = old_color_state - end def code_and_code_type_for(meth) case code_type = code_type_for(meth)