null+****@clear*****
null+****@clear*****
Wed Jun 13 17:06:57 JST 2012
SUZUKI Miho 2012-06-13 17:06:57 +0900 (Wed, 13 Jun 2012) New Revision: f47e9cc5c81578b5b555d4633454c2803c6fb0bb https://github.com/logaling/logaling-command/commit/f47e9cc5c81578b5b555d4633454c2803c6fb0bb Merged 7228757: Merge pull request #60 from logaling/refactor-structure Log: Remove unused methods - Repository#bilingual_pair_exists? - Repository#bilingual_pair_exists_and_has_same_note? Modified files: lib/logaling/repository.rb Modified: lib/logaling/repository.rb (+0 -30) =================================================================== --- lib/logaling/repository.rb 2012-06-13 17:01:06 +0900 (dbc5a0f) +++ lib/logaling/repository.rb 2012-06-13 17:06:57 +0900 (9318b17) @@ -118,36 +118,6 @@ module Logaling File.exist?(path) ? path : nil end - def bilingual_pair_exists?(source_term, target_term, glossary) - raise Logaling::GlossaryDBNotFound unless File.exist?(logaling_db_home) - - terms = [] - Logaling::GlossaryDB.open(logaling_db_home, "utf8") do |db| - terms = db.get_bilingual_pair(source_term, target_term, glossary) - end - - if terms.size > 0 - true - else - false - end - end - - def bilingual_pair_exists_and_has_same_note?(source_term, target_term, note, glossary) - raise Logaling::GlossaryDBNotFound unless File.exist?(logaling_db_home) - - terms = [] - Logaling::GlossaryDB.open(logaling_db_home, "utf8") do |db| - terms = db.get_bilingual_pair(source_term, target_term, glossary, note) - end - - if terms.size > 0 - true - else - false - end - end - def find_project(project_name) project = projects.detect{|project| project.name == project_name} end -------------- next part -------------- An HTML attachment was scrubbed... 다운로드