mirror of https://github.com/odrling/Aegisub
Remove no-longer-used header variable in ass parser
This commit is contained in:
parent
3c59903420
commit
2c4eaa8d45
|
@ -129,14 +129,11 @@ void AssParser::AddLine(std::string const& data) {
|
||||||
if (data[0] == '[' && data.back() == ']') {
|
if (data[0] == '[' && data.back() == ']') {
|
||||||
// Ugly hacks to allow intermixed v4 and v4+ style sections
|
// Ugly hacks to allow intermixed v4 and v4+ style sections
|
||||||
const std::string low = boost::to_lower_copy(data);
|
const std::string low = boost::to_lower_copy(data);
|
||||||
std::string header = data;
|
|
||||||
if (low == "[v4 styles]") {
|
if (low == "[v4 styles]") {
|
||||||
header = "[V4+ Styles]";
|
|
||||||
version = 0;
|
version = 0;
|
||||||
state = &AssParser::ParseStyleLine;
|
state = &AssParser::ParseStyleLine;
|
||||||
}
|
}
|
||||||
else if (low == "[v4+ styles]") {
|
else if (low == "[v4+ styles]") {
|
||||||
header = "[V4+ Styles]";
|
|
||||||
version = 1;
|
version = 1;
|
||||||
state = &AssParser::ParseStyleLine;
|
state = &AssParser::ParseStyleLine;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue