Sutou Kouhei 2019-06-18 12:29:41 +0900 (Tue, 18 Jun 2019) Revision: 22b00842012866df7014f1e5508c985bf8391346 https://github.com/ranguba/chupa-text-decomposer-abiword/commit/22b00842012866df7014f1e5508c985bf8391346 Message: Remove needless code Modified files: test/helper.rb Modified: test/helper.rb (+1 -22) =================================================================== --- test/helper.rb 2019-06-18 12:07:14 +0900 (33955f7) +++ test/helper.rb 2019-06-18 12:29:41 +0900 (a541dee) @@ -27,31 +27,10 @@ module DecomposeHelper def decompose(path) data = ChupaText::InputData.new(path) - pdf_decomposer = ChupaText::Decomposers::PDF.new({}) decomposed = [] @decomposer.decompose(data) do |decomposed_data| - if pdf_decomposer.target?(decomposed_data) - pdf_decomposer.decompose(decomposed_data) do |pdf_decomposed_data| - decomposed << pdf_decomposed_data - end - else - decomposed << decomposed_data - end + decomposed << decomposed_data end decomposed end - - def normalize_producers(producers) - producers.collect do |producer| - normalize_producer(producer) - end - end - - def normalize_producer(producer) - if /\Acairo \d+\.\d+\.\d+ \(https:\/\/cairographics\.org\)\z/ =~ producer - "cairo" - else - producer - end - end end -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190618/d494626a/attachment.html>