deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [3/15] git commit: CIMI: remove unused model methods
Date Thu, 14 Mar 2013 18:19:04 GMT
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 <lutter@redhat.com>
Authored: Wed Mar 13 16:57:55 2013 -0700
Committer: David Lutterkort <lutter@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)


Mime
View raw message