fix: remove unused to_unsynced
This commit is contained in:
+1
-5
@@ -293,7 +293,7 @@ class LRCData:
|
||||
else CacheStatus.SUCCESS_UNSYNCED
|
||||
)
|
||||
|
||||
def normalize_unsynced(self) -> "LRCData":
|
||||
def normalize_unsynced(self):
|
||||
"""Convert lyrics into unsynced LRC form with [00:00.00] tags.
|
||||
|
||||
- Leading blank lyric lines are skipped.
|
||||
@@ -366,10 +366,6 @@ class LRCData:
|
||||
|
||||
return "\n".join(sorted_lines).strip()
|
||||
|
||||
def to_unsynced(self) -> "LRCData":
|
||||
"""Return a plain-text based unsynced representation."""
|
||||
return LRCData(self.to_plain())
|
||||
|
||||
def to_text(
|
||||
self,
|
||||
plain: bool = False,
|
||||
|
||||
@@ -301,14 +301,6 @@ def test_to_text_plain_true_matches_to_plain_output() -> None:
|
||||
assert data.to_text(plain=True) == data.to_plain()
|
||||
|
||||
|
||||
def test_to_unsynced_converts_to_plain_based_unsynced_data() -> None:
|
||||
data = LRCData("[ar:Artist]\n[00:02.00]b\n[00:01.00]a")
|
||||
|
||||
unsynced = data.to_unsynced()
|
||||
|
||||
assert str(unsynced) == "a\nb"
|
||||
|
||||
|
||||
def test_duplicate_doc_tag_key_last_value_wins_but_lines_are_kept() -> None:
|
||||
data = LRCData("[ar:First]\n[ar:Second]\n[00:01.00]line")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user