Skip to content

Commit fe92b99

Browse files
committed
removed unused method
1 parent a5edb66 commit fe92b99

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

datacrunch/containers/containers.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,24 +137,6 @@ class ContainerInfo:
137137
env: Optional[List[EnvVar]] = None
138138
volume_mounts: Optional[List[VolumeMount]] = None
139139

140-
@classmethod
141-
def from_container(cls, name: str, container: Container) -> 'ContainerInfo':
142-
"""Create a ContainerInfo from a Container and a name.
143-
144-
:param name: Name of the container
145-
:param container: Container specification
146-
:return: ContainerInfo instance
147-
"""
148-
return cls(
149-
name=name,
150-
image=container.image,
151-
exposed_port=container.exposed_port,
152-
healthcheck=container.healthcheck,
153-
entrypoint_overrides=container.entrypoint_overrides,
154-
env=container.env,
155-
volume_mounts=container.volume_mounts
156-
)
157-
158140

159141
@dataclass_json
160142
@dataclass

0 commit comments

Comments
 (0)