lib/review/preprocessor.rb in review-3.1.0 vs lib/review/preprocessor.rb in review-3.2.0
- old
+ new
@@ -41,32 +41,10 @@
end
class Preprocessor
include ErrorUtils
- class Strip
- def initialize(f)
- @f = f
- end
-
- def path
- @f.path
- end
-
- def lineno
- @f.lineno
- end
-
- def gets
- @f.each_line do |line|
- return "\#@\#\n" if /\A\#@/ =~ line
- return line
- end
- nil
- end
- end
-
def initialize(repo, param)
@repository = repo
@config = param
@logger = ReVIEW.logger
@leave_content = nil
@@ -75,11 +53,11 @@
def process(inf, outf)
init_errorutils inf
@f = outf
begin
preproc inf
- rescue Errno::ENOENT => err
- error err.message
+ rescue Errno::ENOENT => e
+ error e.message
end
end
private