deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 4/7] CIMI::Model::Base: remove unused methods acts_as_root_entity and all
Date Sat, 06 Oct 2012 00:52:08 GMT
From: David Lutterkort <lutter@redhat.com>

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

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?
','
-- 
1.7.7.6


Mime
View raw message