diff --git a/app/controllers/country_controller.rb b/app/controllers/country_controller.rb index 7375c1b89..fec106965 100644 --- a/app/controllers/country_controller.rb +++ b/app/controllers/country_controller.rb @@ -48,7 +48,6 @@ def show def build_stats @tabs = [{ id: 'wdpa', title: I18n.t('global.area-types.wdpa') }] @stats_data = build_hash(:wdpa) - @number_of_national_desinitions = get_number_of_national_desinitions if has_oecms @stats_data.merge!(build_oecm_hash) @@ -66,15 +65,6 @@ def protected_areas private - def get_number_of_national_desinitions - number_of_national_desinitions = 0 - designations_list = @stats_data[:wdpa][:designations][:designations] - designations_list.each do |designation| - total = designation[:total] - number_of_national_desinitions = total if designation[:type] == 'National' && total.is_a?(Integer) - end - number_of_national_desinitions - end def has_oecms @total_oecm = @country.protected_areas.oecms.count diff --git a/app/views/country/show.html.erb b/app/views/country/show.html.erb index 21996f947..156a9cb02 100644 --- a/app/views/country/show.html.erb +++ b/app/views/country/show.html.erb @@ -20,7 +20,6 @@ total_oecm: @total_oecm, total_pame: @total_pame, total_wdpa: @total_wdpa, - number_of_national_desinitions: @number_of_national_desinitions, wdpa_national_designations_count: @wdpa_national_designations_count, oecm_national_designations_count: @oecm_national_designations_count } %>