From 8943ff493535399b01250696e530c4e26e329a90 Mon Sep 17 00:00:00 2001 From: Rick Bradley Date: Thu, 26 May 2016 11:46:45 -0500 Subject: [PATCH] (QENG-3919) Drop now-orphaned `checkout_vm` method We kept this up-to-date while we were upgrading and refactoring, but, turns out, this method is no longer called anywhere. :skull: :fire: --- lib/vmpooler/api/v1.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/vmpooler/api/v1.rb b/lib/vmpooler/api/v1.rb index d3ad611..0ac50da 100644 --- a/lib/vmpooler/api/v1.rb +++ b/lib/vmpooler/api/v1.rb @@ -72,18 +72,6 @@ module Vmpooler end end - def checkout_vm(template, result) - if vm = fetch_single_vm(template) - account_for_starting_vm(template, vm) - update_result_hosts(result, template, vm) - else - status 503 - result['ok'] = false - end - - result - end - def update_result_hosts(result, template, vm) result[template] ||= {} if result[template]['hostname']