]> git.donarmstrong.com Git - biopieces.git/commitdiff
removed commented out stale code
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 23 Oct 2013 12:47:14 +0000 (12:47 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 23 Oct 2013 12:47:14 +0000 (12:47 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2243 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/filesys.rb

index eadb53649e785a4144e82f63a3b607e2b314d49e..6a990fa8b2cc67e85f576de1b8deaf088e6eb8f8 100644 (file)
@@ -22,8 +22,6 @@
 
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
-# require 'zlib'
-# require 'bzip2'
 require 'open3'
 
 # Error class for all exceptions to do with Filesys.
@@ -50,10 +48,8 @@ class Filesys
     if mode == 'w'
       case options[:compress]
       when :gzip
-        # ios = Zlib::GzipWriter.new File.open(file, mode, options)
         ios, = Open3.pipeline_w("gzip -f", out: file)
       when :bzip, :bzip2
-        # ios = Bzip2::Writer.new File.open(file, mode, options)   # TODO being pissed with buggy bzip2 gem.
         ios, = Open3.pipeline_w("bzip2 -c", out: file)
       else 
         ios = File.open(file, mode, options)
@@ -64,10 +60,8 @@ class Filesys
       else
         case `file -L #{file}`
         when /gzip/
-          # ios = Zlib::GzipReader.new File.open(file, mode, options)
           ios = IO.popen("gzip -cd #{file}")
         when /bzip/
-          # ios = Bzip2::Reader.new File.open(file, mode, options)   # TODO this method is buggy, investigate
           ios = IO.popen("bzcat #{file}")
         else
           ios = File.open(file, mode, options)