From c32a11c4ddea66651d7a869ec636c9fd2231305c Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Wed, 24 Jul 2019 12:56:26 -0400 Subject: [PATCH] Remove unecessary pushing/popping for string literals --- normalization.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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( -- 2.20.1