You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2013/03/14 19:19:04 UTC
[3/15] git commit: CIMI: remove unused model methods
CIMI: remove unused model methods
Collection.all and Resource.all_uri do not make sense any more since they
ultimately depend on find, which is now a service method.
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/6779a572
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/6779a572
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/6779a572
Branch: refs/heads/master
Commit: 6779a572a0042a79781e86578e1eb28663016804
Parents: 946ddfe
Author: David Lutterkort <lu...@redhat.com>
Authored: Wed Mar 13 16:57:55 2013 -0700
Committer: David Lutterkort <lu...@redhat.com>
Committed: Wed Mar 13 17:28:13 2013 -0700
----------------------------------------------------------------------
server/lib/cimi/models/collection.rb | 6 ------
server/lib/cimi/models/resource.rb | 6 ------
2 files changed, 0 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/6779a572/server/lib/cimi/models/collection.rb
----------------------------------------------------------------------
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
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/6779a572/server/lib/cimi/models/resource.rb
----------------------------------------------------------------------
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)