You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2013/03/14 01:33:46 UTC
[PATCH 14/14] CIMI: remove unused model methods
From: David Lutterkort <lu...@redhat.com>
Collection.all and Resource.all_uri do not make sense any more since they
ultimately depend on find, which is now a service method.
---
server/lib/cimi/models/collection.rb | 6 ------
server/lib/cimi/models/resource.rb | 6 ------
2 files changed, 12 deletions(-)
diff --git a/server/lib/cimi/models/collection.rb b/server/lib/cimi/models/collection.rb
index cc95ab7..b06a1e9 100644
--- a/server/lib/cimi/models/collection.rb
+++ b/server/lib/cimi/models/collection.rb
@@ -130,11 +130,5 @@ module CIMI::Model
end
collection_class.new(params)
end
-
- def all(context)
- find :all, context
- end
-
end
-
end
diff --git a/server/lib/cimi/models/resource.rb b/server/lib/cimi/models/resource.rb
index 246b135..9f5bb66 100644
--- a/server/lib/cimi/models/resource.rb
+++ b/server/lib/cimi/models/resource.rb
@@ -89,12 +89,6 @@ module CIMI
end
end
- # Return Array of links to current CIMI object
- #
- def all_uri(context)
- self.all(context).map { |e| { :href => e.id } }
- end
-
# Construct a new object from the XML representation +xml+
def from_xml(text)
xml = XmlSimple.xml_in(text, :force_content => true)
--
1.8.1.4