Remove unused snapshot functions

This commit is contained in:
Scott Schneider 2013-10-31 11:56:57 -07:00
parent 6d4e326011
commit bf0150de4b

View file

@ -20,22 +20,6 @@ class VsphereHelper
:insecure => true :insecure => true
end 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 def find_customization name
csm = @connection.serviceContent.customizationSpecManager csm = @connection.serviceContent.customizationSpecManager