Lichen

Changeset

818:0df7efebdf51
2018-01-08 Paul Boddie raw files shortlog changelog graph Removed superfluous code distinguishing between parameters and other names.
translator.py (file)
     1.1 --- a/translator.py	Sat Jun 17 00:52:56 2017 +0200
     1.2 +++ b/translator.py	Mon Jan 08 00:13:18 2018 +0100
     1.3 @@ -3,7 +3,7 @@
     1.4  """
     1.5  Translate programs.
     1.6  
     1.7 -Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
     1.8 +Copyright (C) 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
     1.9  
    1.10  This program is free software; you can redistribute it and/or modify it under
    1.11  the terms of the GNU General Public License as published by the Free Software
    1.12 @@ -1559,13 +1559,6 @@
    1.13              locals = self.importer.function_locals.get(path)
    1.14              ref = locals and locals.get(n.name)
    1.15  
    1.16 -        # Determine whether the name refers to a parameter. The generation of
    1.17 -        # parameter references is different from other names.
    1.18 -
    1.19 -        parameters = self.importer.function_parameters.get(path)
    1.20 -        parameter = n.name == "self" and self.in_method() or \
    1.21 -                    parameters and n.name in parameters
    1.22 -
    1.23          # Find any invocation or alias details.
    1.24  
    1.25          name = self.get_name_for_tracking(n.name, is_global=is_global)