Commit 378ad290 authored by Michal Čihař's avatar Michal Čihař

Remove not used methods

parent 3d05f810
......@@ -43,20 +43,6 @@ class ApertiumTranslation(MachineTranslation):
for item in data['responseData']
if item['sourceLanguage'] == 'en']
def format_match(self, match):
'''
Reformats match to (translation, quality) tuple.
'''
if match['quality'].isdigit():
quality = int(match['quality'])
else:
quality = 0
return (
match['translation'],
quality * match['match']
)
def download_translations(self, language, text):
'''
Downloads list of possible translations from a service.
......
......@@ -107,20 +107,6 @@ class MicrosoftTranslation(MachineTranslation):
data = self.json_req(LIST_URL)
return data
def format_match(self, match):
'''
Reformats match to (translation, quality) tuple.
'''
if match['quality'].isdigit():
quality = int(match['quality'])
else:
quality = 0
return (
match['translation'],
quality * match['match']
)
def download_translations(self, language, text):
'''
Downloads list of possible translations from a service.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment