From eb6d63a5336934f3c0ded0e7cc866e684344574f Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 16:57:01 -0300 Subject: [PATCH] Dead code --- src/funko.cr | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/funko.cr b/src/funko.cr index 70b0090..ecbc979 100644 --- a/src/funko.cr +++ b/src/funko.cr @@ -206,23 +206,6 @@ module Funko end end - # Start exited container with the newer image - # or unpause paused container - def start - if self.exited? - docker_api = Docr::API.new(Docr::Client.new) - images = self.image_history - exited = self.containers.select { |container| - container.@state == "exited" - }.sort! { |i, j| - (images.index(j.@image_id) || 9999) <=> (images.index(i.@image_id) || 9999) - } - docker_api.containers.restart(exited[0].@id) unless exited.empty? - elsif self.paused? - self.unpause - end - end - # Stop container with the newer image def stop docker_api = Docr::API.new(Docr::Client.new)