From bf0150de4bc3c4b82bc57da097d80203a558178d Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Thu, 31 Oct 2013 11:56:57 -0700 Subject: [PATCH] Remove unused snapshot functions --- lib/vsphere_helper.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/vsphere_helper.rb b/lib/vsphere_helper.rb index afe29e6..bdaeac5 100755 --- a/lib/vsphere_helper.rb +++ b/lib/vsphere_helper.rb @@ -20,22 +20,6 @@ class VsphereHelper :insecure => true end - def find_snapshot vm, snapname - search_child_snaps vm.snapshot.rootSnapshotList, snapname - end - - def search_child_snaps tree, snapname - snapshot = nil - tree.each do |child| - if child.name == snapname - snapshot ||= child.snapshot - else - snapshot ||= search_child_snaps child.childSnapshotList, snapname - end - end - snapshot - end - def find_customization name csm = @connection.serviceContent.customizationSpecManager