You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/10/11 10:33:28 UTC

[3/7] git commit: CIMI::Model::Base: remove unused methods acts_as_root_entity and all

CIMI::Model::Base: remove unused methods acts_as_root_entity and all

TrackedAt: http://tracker.deltacloud.org/patch/e201dd5a9b211f1fdfd0fb523fe999e8877e3848


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

Branch: refs/heads/master
Commit: 2ddc6d8a79cb244711effe2d50ced9f805dc48fe
Parents: 6ba2375
Author: David Lutterkort <lu...@redhat.com>
Authored: Fri Oct 5 17:22:34 2012 -0700
Committer: Michal fojtik <mf...@redhat.com>
Committed: Thu Oct 11 10:31:08 2012 +0200

----------------------------------------------------------------------
 server/lib/cimi/models/base.rb |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/2ddc6d8a/server/lib/cimi/models/base.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/base.rb b/server/lib/cimi/models/base.rb
index eefa868..2a27a8f 100644
--- a/server/lib/cimi/models/base.rb
+++ b/server/lib/cimi/models/base.rb
@@ -235,17 +235,6 @@ class CIMI::Model::Base
 
   hash :property
 
-  def self.acts_as_root_entity(name=nil)
-    if name
-      name = name.to_s.camelize.pluralize
-    else
-      name = xml_tag_name.pluralize.uncapitalize
-    end
-    CIMI::Model.register_as_root_entity! name
-  end
-
-  def self.all(_self); find(:all, _self); end
-
   def filter_by(filter_opts)
     return self if filter_opts.nil?
     return filter_attributes(filter_opts.split(',').map{ |a| a.intern }) if filter_opts.include? ','