summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-06-17 22:32:07 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-06-17 22:32:07 -0300
commit445a3fe4634390323b25b0188d6e458418f77ef4 (patch)
treea5289d575bde6ef3588bb7801bca8ccf24b07bba
parent4d8dc67327a64ceb1e361c39b2006b8f70e7d981 (diff)
downloadhighline-445a3fe4634390323b25b0188d6e458418f77ef4.tar.gz
Remove commented (non functional) code
As suggested by @maurogeorge at https://github.com/JEG2/highline/pull/140#discussion_r32679353
-rwxr-xr-xlib/highline/terminal.rb68
1 files changed, 0 insertions, 68 deletions
diff --git a/lib/highline/terminal.rb b/lib/highline/terminal.rb
index 0136f06..b23fe65 100755
--- a/lib/highline/terminal.rb
+++ b/lib/highline/terminal.rb
@@ -48,71 +48,3 @@ class HighLine
end
end
end
-
-=begin
-
-# Meanwhile, we're concentratring on making a standard
-# terminal to work using this new approach.
-#
-# We'll try to revive the code bellow as soon as possible.
-
- JRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
-
- if JRUBY
- require 'highline/terminal/jruby'
- return HighLine::Terminal::JRuby
- end
-
- extend self
-
- #
- # This section builds character reading and terminal size functions
- # to suit the proper platform we're running on. Be warned: Here be
- # dragons!
- #
- if RUBY_PLATFORM =~ /mswin(?!ce)|mingw|bccwin/i
- begin
- require 'highline/terminal/windows_fiddle'
- return HighLine::Terminal::WindowsFiddle
- rescue LoadError
- require 'highline/terminal/windows_dl_import'
- return HighLine::Terminal::WindowsDlImport
- end
-
- require 'highline/terminal/windows'
- return HighLine::Terminal::Windows
- else # If we're not on Windows try...
- begin
- require 'highline/terminal/unix_termios'
- return HighLine::Terminal::UnixTermios
- rescue LoadError # If our first choice fails, try using JLine
- if JRUBY # if we are on JRuby. JLine is bundled with JRuby.
- require 'highline/terminal/jruby_jline'
- return HighLine::Terminal::JRubyJLine
- else # If we are not on JRuby, try ncurses
- begin
- require 'highline/terminal/ncurses'
- return HighLine::Terminal::NCurses
- rescue LoadError # Finally, if all else fails, use stty
- require 'highline/terminal/stty'
- return HighLine::Terminal::Stty
- end
- end
- end
-
- # For termios and stty
- if not method_defined?(:terminal_size)
- require 'highline/terminal/unix_stty'
- return HighLine::Terminal::UnixStty
- end
- end
-
- if not method_defined?(:get_character)
- def get_character( input = STDIN )
- input.getbyte
- end
- end
- end
- end
-end
-=end