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/01 23:22:10 UTC

[3/3] git commit: CIMI (cimi_helper): remove unused code

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 <lu...@redhat.com>
Authored: Wed Feb 27 15:33:50 2013 -0800
Committer: David Lutterkort <lu...@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