summaryrefslogtreecommitdiff
path: root/compose/container.py
diff options
context:
space:
mode:
Diffstat (limited to 'compose/container.py')
-rw-r--r--compose/container.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/compose/container.py b/compose/container.py
index 68218829..5730f224 100644
--- a/compose/container.py
+++ b/compose/container.py
@@ -228,16 +228,6 @@ class Container(object):
self.has_been_inspected = True
return self.dictionary
- # TODO: only used by tests, move to test module
- def links(self):
- links = []
- for container in self.client.containers():
- for name in container['Names']:
- bits = name.split('/')
- if len(bits) > 2 and bits[1] == self.name:
- links.append(bits[2])
- return links
-
def attach(self, *args, **kwargs):
return self.client.attach(self.id, *args, **kwargs)