# HG changeset patch # User Paul Boddie # Date 1515366798 -3600 # Node ID 0df7efebdf5140e7770cadf2ae2f1204088de42d # Parent d39dbf8b26d25b8630921ed1272a899d36d0e7f0 Removed superfluous code distinguishing between parameters and other names. diff -r d39dbf8b26d2 -r 0df7efebdf51 translator.py --- a/translator.py Sat Jun 17 00:52:56 2017 +0200 +++ b/translator.py Mon Jan 08 00:13:18 2018 +0100 @@ -3,7 +3,7 @@ """ Translate programs. -Copyright (C) 2015, 2016, 2017 Paul Boddie +Copyright (C) 2015, 2016, 2017, 2018 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -1559,13 +1559,6 @@ locals = self.importer.function_locals.get(path) ref = locals and locals.get(n.name) - # Determine whether the name refers to a parameter. The generation of - # parameter references is different from other names. - - parameters = self.importer.function_parameters.get(path) - parameter = n.name == "self" and self.in_method() or \ - parameters and n.name in parameters - # Find any invocation or alias details. name = self.get_name_for_tracking(n.name, is_global=is_global)