From 5793fb887cb04e40fe95f94a12fd2bff9136a04f Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Tue, 2 May 2017 11:33:43 -0700 Subject: [PATCH] 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. --- copycat/group.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/copycat/group.py b/copycat/group.py index 57a5de4..d91a937 100644 --- a/copycat/group.py +++ b/copycat/group.py @@ -220,14 +220,6 @@ class Group(WorkspaceObject): return False 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): """Whether no other object of the same type has the same descriptor""" if not WorkspaceObject.distinguishingDescriptor(self, descriptor):