src/parser.cpp

changeset 1312
f2974f3ac1ab
parent 1306
be85306198a2
child 1326
69a90bd2dba2
--- a/src/parser.cpp	Fri Mar 23 17:14:46 2018 +0200
+++ b/src/parser.cpp	Fri Mar 23 19:30:53 2018 +0200
@@ -353,23 +353,6 @@
 			{
 				// Comment
 				QString commentText = line.mid(line.indexOf("0") + 2);
-				QString commentTextSimplified = commentText.trimmed();
-
-				// Handle BFC statements
-				if (countof(tokens) > 2 and tokens[1] == "BFC")
-				{
-					for (BfcStatement statement : iterateEnum<BfcStatement>())
-					{
-						if (commentTextSimplified == format("BFC %1", LDBfc::statementToString(statement)))
-							return model.emplaceAt<LDBfc>(position, statement);
-					}
-
-					// handle MLCAD nonsense
-					if (commentTextSimplified == "BFC CERTIFY CLIP")
-						return model.emplaceAt<LDBfc>(position, BfcStatement::Clip);
-					else if (commentTextSimplified == "BFC CERTIFY NOCLIP")
-						return model.emplaceAt<LDBfc>(position, BfcStatement::NoClip);
-				}
 
 				if (countof(tokens) > 2 and tokens[1] == "!LDFORGE")
 				{

mercurial