From: David Kerkeslager Date: Wed, 24 Jul 2019 16:56:26 +0000 (-0400) Subject: Remove unecessary pushing/popping for string literals X-Git-Url: https://code.kerkeslager.com/?a=commitdiff_plain;h=c32a11c4ddea66651d7a869ec636c9fd2231305c;p=fur Remove unecessary pushing/popping for string literals --- diff --git a/normalization.py b/normalization.py index f6c4246..291646a 100644 --- a/normalization.py +++ b/normalization.py @@ -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(