deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [3/3] git commit: CIMI (cimi_helper): remove unused code
Date Fri, 01 Mar 2013 22:22:10 GMT
Updated Branches:
  refs/heads/master fb0f4398c -> 17b36ea35


CIMI (cimi_helper): remove unused code


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/69772270
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/69772270
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/69772270

Branch: refs/heads/master
Commit: 6977227024f04763aab529623a03310f9286f3ce
Parents: fb0f439
Author: David Lutterkort <lutter@redhat.com>
Authored: Wed Feb 27 15:33:50 2013 -0800
Committer: David Lutterkort <lutter@redhat.com>
Committed: Fri Mar 1 14:17:18 2013 -0800

----------------------------------------------------------------------
 server/lib/cimi/helpers/cimi_helper.rb |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/69772270/server/lib/cimi/helpers/cimi_helper.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/helpers/cimi_helper.rb b/server/lib/cimi/helpers/cimi_helper.rb
index 5e74c2c..e23d819 100644
--- a/server/lib/cimi/helpers/cimi_helper.rb
+++ b/server/lib/cimi/helpers/cimi_helper.rb
@@ -85,27 +85,3 @@ module CIMI
 
   end
 end
-
-class Array
-  def to_xml_cimi_collection(_self)
-    model_name = first.class.xml_tag_name
-    XmlSimple.xml_out({
-      "xmlns" => "http://schemas.dmtf.org/cimi/1",
-      "uri" => [ _self.send(:"#{model_name.underscore.pluralize}_url") ],
-      "name" => [ "default" ],
-      "created" => [ Time.now.to_s ],
-      model_name => map { |model| { 'href' => model.uri } }
-    }, :root_name => "#{model_name}Collection")
-  end
-
-  def to_json_cimi_collection(_self)
-    model_name = first.class.xml_tag_name
-    {
-      "uri" => _self.send(:"#{model_name.underscore.pluralize}_url"),
-      "name" => "default",
-      "created" => Time.now.to_s,
-      model_name.pluralize.uncapitalize => map { |model| { 'href' => model.uri } }
-    }.to_json
-  end
-
-end


Mime
View raw message