diff --git a/aegisub/src/ass_parser.cpp b/aegisub/src/ass_parser.cpp
index 883142b5ef870e49f74a28a046c79f532d4ab303..d5862767561abdc7566e9ed74fe7a4db31779519 100644
--- a/aegisub/src/ass_parser.cpp
+++ b/aegisub/src/ass_parser.cpp
@@ -129,14 +129,11 @@ void AssParser::AddLine(std::string const& data) {
 	if (data[0] == '[' && data.back() == ']') {
 		// Ugly hacks to allow intermixed v4 and v4+ style sections
 		const std::string low = boost::to_lower_copy(data);
-		std::string header = data;
 		if (low == "[v4 styles]") {
-			header = "[V4+ Styles]";
 			version = 0;
 			state = &AssParser::ParseStyleLine;
 		}
 		else if (low == "[v4+ styles]") {
-			header = "[V4+ Styles]";
 			version = 1;
 			state = &AssParser::ParseStyleLine;
 		}