deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [9/9] git commit: Core: Removed unused variables and trailing whitespace
Date Fri, 24 Aug 2012 09:49:46 GMT
Core: Removed unused variables and trailing whitespace


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

Branch: refs/heads/master
Commit: b89782a40d99728b848b2ff05323140d8cfb1036
Parents: dbdffa5
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Aug 23 13:21:33 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Aug 23 13:21:33 2012 +0200

----------------------------------------------------------------------
 client/lib/base_object.rb                          |    2 +-
 .../lib/deltacloud/drivers/google/google_driver.rb |    2 +-
 server/lib/deltacloud/helpers/deltacloud_helper.rb |    2 --
 3 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b89782a4/client/lib/base_object.rb
----------------------------------------------------------------------
diff --git a/client/lib/base_object.rb b/client/lib/base_object.rb
index 5035266..6a28d5a 100644
--- a/client/lib/base_object.rb
+++ b/client/lib/base_object.rb
@@ -102,7 +102,7 @@ module DeltaCloud
           :values => @providers
         }
       end
-      
+
 
       # This method define collection of text elements inside REST model
       # XML syntax: <addresses>

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b89782a4/server/lib/deltacloud/drivers/google/google_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/google/google_driver.rb b/server/lib/deltacloud/drivers/google/google_driver.rb
index 18c4058..12b0bf0 100644
--- a/server/lib/deltacloud/drivers/google/google_driver.rb
+++ b/server/lib/deltacloud/drivers/google/google_driver.rb
@@ -196,7 +196,7 @@ class GoogleDriver < Deltacloud::BaseDriver
   def valid_credentials?(credentials)
     begin
       new_client(credentials).get_service && true
-    rescue => e
+    rescue
       return false
     end
     return true

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b89782a4/server/lib/deltacloud/helpers/deltacloud_helper.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/helpers/deltacloud_helper.rb b/server/lib/deltacloud/helpers/deltacloud_helper.rb
index 799478e..c31f89d 100644
--- a/server/lib/deltacloud/helpers/deltacloud_helper.rb
+++ b/server/lib/deltacloud/helpers/deltacloud_helper.rb
@@ -55,7 +55,6 @@ module Deltacloud::Helpers
       filter.merge!(:owner_id => params[:owner_id]) if params[:owner_id]
       filter.merge!(:state => params[:state]) if params[:state]
       filter = {} if filter.keys.size.eql?(0)
-      singular = model.to_s.singularize.to_sym
       begin
         @benchmark = Benchmark.measure do
           @elements = driver.send(model.to_sym, credentials, filter)
@@ -179,7 +178,6 @@ module Deltacloud::Helpers
     end
 
     def image_for_state(state)
-      state_img = "stopped" if (state!='RUNNING' or state!='PENDING')
       capture_haml do
         haml_tag :img, :src => "/images/#{state}" % state.downcase, :title => state
       end


Mime
View raw message