Skip to content

Commit

Permalink
Remove dead @base from controllers
Browse files Browse the repository at this point in the history
only ever saved to session and restored from there
  • Loading branch information
himdel committed Mar 13, 2017
1 parent 3bef426 commit dd7bb94
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions app/controllers/host_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ def get_session_data
@display = session[:host_display]
@filters = session[:host_filters]
@catinfo = session[:host_catinfo]
@base = session[:vm_compare_base]
end

def set_session_data
Expand All @@ -663,7 +662,6 @@ def set_session_data
session[:host_catinfo] = @catinfo
session[:miq_compressed] = @compressed unless @compressed.nil?
session[:miq_exists_mode] = @exists_mode unless @exists_mode.nil?
session[:vm_compare_base] = @base
end

menu_section :inf
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/miq_template_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def get_session_data
@layout = session[:miq_template_type] ? session[:miq_template_type] : "miq_template"
@lastaction = session[:miq_template_lastaction]
@showtype = session[:miq_template_showtype]
@base = session[:miq_template_compare_base]
@filters = session[:miq_template_filters]
@catinfo = session[:miq_template_catinfo]
@cats = session[:miq_template_cats]
Expand All @@ -35,7 +34,6 @@ def set_session_data
session[:miq_template_showtype] = @showtype
session[:miq_compressed] = @compressed unless @compressed.nil?
session[:miq_exists_mode] = @exists_mode unless @exists_mode.nil?
session[:miq_template_compare_base] = @base
session[:miq_template_filters] = @filters
session[:miq_template_catinfo] = @catinfo
session[:miq_template_cats] = @cats
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/mixins/vm_show_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def get_session_data
@layout = controller_name
@lastaction = session[:vm_lastaction]
@showtype = session[:vm_showtype]
@base = session[:vm_compare_base]
@filters = get_filters
@catinfo = session[:vm_catinfo]
@cats = session[:vm_cats]
Expand All @@ -149,7 +148,6 @@ def set_session_data
session[:vm_showtype] = @showtype
session[:miq_compressed] = @compressed unless @compressed.nil?
session[:miq_exists_mode] = @exists_mode unless @exists_mode.nil?
session[:vm_compare_base] = @base
session[:vm_filters] = @filters
session[:vm_catinfo] = @catinfo
session[:vm_cats] = @cats
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/vm_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def get_session_data
@layout = "vm"
@lastaction = session[:vm_lastaction]
@showtype = session[:vm_showtype]
@base = session[:vm_compare_base]
@filters = session[:vm_filters]
@catinfo = session[:vm_catinfo]
@cats = session[:vm_cats]
Expand All @@ -38,7 +37,6 @@ def set_session_data
session[:vm_showtype] = @showtype
session[:miq_compressed] = @compressed unless @compressed.nil?
session[:miq_exists_mode] = @exists_mode unless @exists_mode.nil?
session[:vm_compare_base] = @base
session[:vm_filters] = @filters
session[:vm_catinfo] = @catinfo
session[:vm_cats] = @cats
Expand Down

0 comments on commit dd7bb94

Please sign in to comment.