Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove dead code

Christophe Bliard658bedb8577d
diff --git a/modules/backlogs/app/seeders/basic_data/backlogs/type_seeder.rb b/modules/backlogs/app/seeders/basic_data/backlogs/type_seeder.rb
deleted file mode 100644
index 648988d0bda..00000000000
--- a/modules/backlogs/app/seeders/basic_data/backlogs/type_seeder.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-module BasicData
- module Backlogs
- module TypeSeeder
- def coded_visibility_table
- super.merge backlogs_visibility_table
- end
-
- ##
- # Relies on type names in the core TypeSeeder being (in this order)
- # task, milestone, phase, feature, epic, user_story, bug
- # and 0 to 2 being mapped to
- # hidden, default, visible
- def backlogs_visibility_table
- {
- story_points: [0, 0, 0, 1, 2, 2, 1],
- remaining_time: [1, 0, 0, 1, 1, 1, 1]
- }
- end
- end
-
- BasicData::TypeSeeder.prepend BasicData::Backlogs::TypeSeeder
- end
-end
diff --git a/modules/costs/app/seeders/basic_data/costs/type_seeder.rb b/modules/costs/app/seeders/basic_data/costs/type_seeder.rb
deleted file mode 100644
index fd3f6d13613..00000000000
--- a/modules/costs/app/seeders/basic_data/costs/type_seeder.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-module BasicData
- module Costs
- module TypeSeeder
- # TODO: split up between costs and budgets
- def coded_visibility_table
- super.merge costs_visibility_table
- end
-
- ##
- # Relies on type names in the core TypeSeeder being (in this order)
- # task, milestone, phase, feature, epic, user_story, bug
- # and 0 to 2 being mapped to
- # hidden, default, visible
- def costs_visibility_table
- {
- overall_costs: [1, 1, 1, 1, 1, 1, 1],
- material_costs: [1, 1, 1, 1, 1, 1, 1], # unit costs
- labor_costs: [1, 1, 1, 1, 1, 1, 1],
- budget: [1, 1, 1, 1, 1, 1, 1] # budget
- }
- end
- end
-
- BasicData::TypeSeeder.prepend BasicData::Costs::TypeSeeder
- end
-end