From 496230c4d36b22ab662d9c4fe642d354b5255784 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 16:57:41 -0300 Subject: [PATCH] Dead code --- src/funko.cr | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/funko.cr b/src/funko.cr index ecbc979..4a327c5 100644 --- a/src/funko.cr +++ b/src/funko.cr @@ -206,17 +206,6 @@ module Funko end end - # Stop container with the newer image - def stop - docker_api = Docr::API.new(Docr::Client.new) - images = self.image_history - containers = self.containers.sort! { |i, j| - (images.index(j.@image_id) || 9999) <=> (images.index(i.@image_id) || 9999) - } - return docker_api.containers.stop(containers[0].@id) unless containers.empty? - nil - end - # Wait up to `t` seconds for the funko to reach the requested `state` def wait_for(new_scale : Int, t) channel = Channel(Nil).new