Skip to content

Commit

Permalink
- removed unused functions
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/branches/ports@2630 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
wrobell committed Jan 18, 2009
1 parent 32e3008 commit 82af12b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
18 changes: 0 additions & 18 deletions gaphor/adapters/components/connectorconnect.py
Expand Up @@ -16,24 +16,6 @@
from gaphor.adapters.connectors import AbstractConnect


def _interfaces(pcomp, rcomp):
"""
Return list of sorted interfaces common to components connected by
assembly connector.
"""
provided = set()
required = set()
for c in pcomp:
provided.update(c.subject.provided)

for c in rcomp:
required.update(c.subject.required)

interfaces = list(provided.intersection(required))
interfaces.sort(key=operator.attrgetter('name'))
return interfaces


class ConnectorConnectBase(AbstractConnect):
def _get_interfaces(self, c1, c2):
"""
Expand Down
3 changes: 0 additions & 3 deletions gaphor/adapters/components/tests/test_connector.py
Expand Up @@ -7,9 +7,6 @@
from gaphor import UML
from gaphor.diagram import items

from gaphor.adapters.components.connectorconnect import _interfaces



class ComponentConnectTestCase(TestCase):
"""
Expand Down

0 comments on commit 82af12b

Please sign in to comment.