Remove unecessary pushing/popping for string literals
authorDavid Kerkeslager <kerkeslager@gmail.com>
Wed, 24 Jul 2019 16:56:26 +0000 (12:56 -0400)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Wed, 24 Jul 2019 16:56:26 +0000 (12:56 -0400)
normalization.py

index f6c4246..291646a 100644 (file)
@@ -207,16 +207,10 @@ def normalize_list_literal_expression(counter, expression):
     )
 
 def normalize_string_literal_expression(counter, expression):
-    variable = '${}'.format(counter)
     return (
-        counter + 1,
-        (
-            NormalVariableInitializationStatement(
-                variable=variable,
-                expression=NormalStringLiteralExpression(string=expression.string),
-            ),
-        ),
-        NormalVariableExpression(variable=variable),
+        counter,
+        (),
+        NormalStringLiteralExpression(string=expression.string),
     )
 
 NormalStructureLiteralExpression = collections.namedtuple(