Remove pointless data member (CID #739030)

This commit is contained in:
Thomas Goyne 2013-10-23 14:52:46 -07:00
parent 01a38a5e86
commit b1ecefe0f2
2 changed files with 1 additions and 4 deletions

View file

@ -57,8 +57,6 @@ AssKaraoke::AssKaraoke(AssDialogue *line, bool auto_split, bool normalize)
} }
void AssKaraoke::SetLine(AssDialogue *line, bool auto_split, bool normalize) { void AssKaraoke::SetLine(AssDialogue *line, bool auto_split, bool normalize) {
active_line = line;
syls.clear(); syls.clear();
Syllable syl; Syllable syl;
syl.start_time = line->Start; syl.start_time = line->Start;
@ -69,7 +67,7 @@ void AssKaraoke::SetLine(AssDialogue *line, bool auto_split, bool normalize) {
if (normalize) { if (normalize) {
// Normalize the syllables so that the total duration is equal to the line length // Normalize the syllables so that the total duration is equal to the line length
int end_time = active_line->End; int end_time = line->End;
int last_end = syl.start_time + syl.duration; int last_end = syl.start_time + syl.duration;
// Total duration is shorter than the line length so just extend the last // Total duration is shorter than the line length so just extend the last

View file

@ -49,7 +49,6 @@ public:
}; };
private: private:
std::vector<Syllable> syls; std::vector<Syllable> syls;
AssDialogue *active_line;
bool no_announce; bool no_announce;