diff --git a/aegisub/src/ass_dialogue.cpp b/aegisub/src/ass_dialogue.cpp index b9541e0b8..24de9ff74 100644 --- a/aegisub/src/ass_dialogue.cpp +++ b/aegisub/src/ass_dialogue.cpp @@ -260,31 +260,6 @@ void AssDialogue::StripTags() { Text = GetStrippedText(); } -void AssDialogue::StripTag(wxString const& tag_name) { - boost::ptr_vector blocks(ParseTags()); - wxString new_text; - - // Look for blocks - for (auto& block : blocks) { - if (block.GetType() != BLOCK_OVERRIDE) { - new_text += block.GetText(); - continue; - } - - AssDialogueBlockOverride *over = static_cast(&block); - wxString temp; - for (auto const& tag : over->Tags) { - if (tag.Name != tag_name) - temp += tag; - } - - if (!temp.empty()) - new_text += "{" + temp + "}"; - } - - Text = new_text; -} - static wxString get_text(AssDialogueBlock &d) { return d.GetText(); } void AssDialogue::UpdateText(boost::ptr_vector& blocks) { if (blocks.empty()) return; diff --git a/aegisub/src/ass_dialogue.h b/aegisub/src/ass_dialogue.h index c348f1fe3..634dd7dff 100644 --- a/aegisub/src/ass_dialogue.h +++ b/aegisub/src/ass_dialogue.h @@ -156,8 +156,6 @@ public: /// Strip all ASS tags from the text void StripTags(); /// Strip a specific ASS tag from the text - /// @param tag_name Tag to strip, with leading slash - void StripTag(wxString const& tag_name); /// Get text without tags wxString GetStrippedText() const;