Commit e25007bc authored by Michal Čihař's avatar Michal Čihař

Remove unused unit parameter

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 1d5cc3a9
...@@ -117,7 +117,6 @@ class BaseFormatCheck(TargetCheck): ...@@ -117,7 +117,6 @@ class BaseFormatCheck(TargetCheck):
return self.check_format( return self.check_format(
sources[1], sources[1],
targets[0], targets[0],
unit,
False False
) )
...@@ -125,7 +124,6 @@ class BaseFormatCheck(TargetCheck): ...@@ -125,7 +124,6 @@ class BaseFormatCheck(TargetCheck):
singular_check = self.check_format( singular_check = self.check_format(
sources[0], sources[0],
targets[0], targets[0],
unit,
len(sources) > 1 len(sources) > 1
) )
if singular_check: if singular_check:
...@@ -140,7 +138,6 @@ class BaseFormatCheck(TargetCheck): ...@@ -140,7 +138,6 @@ class BaseFormatCheck(TargetCheck):
plural_check = self.check_format( plural_check = self.check_format(
sources[1], sources[1],
target, target,
unit,
False False
) )
if plural_check: if plural_check:
...@@ -155,7 +152,7 @@ class BaseFormatCheck(TargetCheck): ...@@ -155,7 +152,7 @@ class BaseFormatCheck(TargetCheck):
return text.replace('\'', '') return text.replace('\'', '')
return text return text
def check_format(self, source, target, unit, ignore_missing): def check_format(self, source, target, ignore_missing):
''' '''
Generic checker for format strings. Generic checker for format strings.
''' '''
......
This diff is collapsed.
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