diff --git a/picard/version.py b/picard/version.py index 081d8851f5..babee0ca88 100644 --- a/picard/version.py +++ b/picard/version.py @@ -77,12 +77,6 @@ def from_string(cls, version_str): def valid_identifiers(cls): return set(cls._identifiers.keys()) - def to_string(self, short=False): - if short: - return self.short_str() - else: - return str(self) - def short_str(self): if self.identifier in {'alpha', 'beta'}: version = self._replace(identifier=self.identifier[0]) diff --git a/test/test_versions.py b/test/test_versions.py index 0268570eea..c98119c758 100644 --- a/test/test_versions.py +++ b/test/test_versions.py @@ -52,7 +52,6 @@ def test_version_conversion(self): ) for v, s in versions: self.assertEqual(str(v), s) - self.assertEqual(v.to_string(), s) self.assertEqual(v, Version.from_string(s)) def test_version_conversion_short(self):