Rip out dead method morePossibleDescriptions. NFC.

This code is already present in `getPossibleDescriptions`... which is
also a terrible function from the philosophical point of view, because
it secretly encodes knowledge about every predicate known to the system.
This commit is contained in:
Arthur O'Dwyer
2017-05-02 11:33:43 -07:00
parent 864c28609c
commit 5793fb887c

View File

@ -220,14 +220,6 @@ class Group(WorkspaceObject):
return False return False
return True return True
def morePossibleDescriptions(self, node):
slipnet = self.ctx.slipnet
result = []
for i, number in enumerate(slipnet.numbers, 1):
if node == number and len(self.objects) == i:
result += [node]
return result
def distinguishingDescriptor(self, descriptor): def distinguishingDescriptor(self, descriptor):
"""Whether no other object of the same type has the same descriptor""" """Whether no other object of the same type has the same descriptor"""
if not WorkspaceObject.distinguishingDescriptor(self, descriptor): if not WorkspaceObject.distinguishingDescriptor(self, descriptor):