Lichen

Change of resolving.py

111:5faa3b93d431
resolving.py
     1.1 --- a/resolving.py	Wed Oct 19 21:05:24 2016 +0200
     1.2 +++ b/resolving.py	Wed Oct 19 21:06:42 2016 +0200
     1.3 @@ -41,7 +41,6 @@
     1.4          self.check_invocations()
     1.5          self.resolve_initialisers()
     1.6          self.resolve_literals()
     1.7 -        self.remove_redundant_accessors()
     1.8  
     1.9      def resolve_class_bases(self):
    1.10  
    1.11 @@ -353,21 +352,6 @@
    1.12                  value_type = self.literal_types[objpath]
    1.13                  self.initialised_names[objpath] = {0 : Reference("<instance>", value_type)}
    1.14  
    1.15 -    def remove_redundant_accessors(self):
    1.16 -
    1.17 -        "Remove now-redundant modifier and accessor information."
    1.18 -
    1.19 -        for path, const_accesses in self.const_accesses.items():
    1.20 -            accesses = self.attr_accessors.get(path)
    1.21 -            modifiers = self.attr_access_modifiers.get(path)
    1.22 -            if not accesses:
    1.23 -                continue
    1.24 -            for access in const_accesses.keys():
    1.25 -                if accesses.has_key(access):
    1.26 -                    del accesses[access]
    1.27 -                if modifiers and modifiers.has_key(access):
    1.28 -                    del modifiers[access]
    1.29 -
    1.30      # Object resolution.
    1.31  
    1.32      def get_resolved_object(self, path):