From f6cf7bcce2499d14af08bd4b5e8dd3e0102583f9 Mon Sep 17 00:00:00 2001 From: Mark Bussey Date: Wed, 25 Sep 2024 14:49:22 -0500 Subject: [PATCH] [MAINTENANCE] Remove dead code - obsolete methods **RATIONALE** A number of EtdForm instance methods were replaced by class methods but not all of the instance methods were deleted from the codebase: * about_me_fields *replaced by ==>* EtdForm.about_me_terms * about_my_program_fields *replaced by ==>* EtdForm.my_program_terms * about_my_etd_fields *replaced by ==>* EtdForm.my_etd_terms The instance methods are no longer called and can be removed. --- app/forms/hyrax/etd_form.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/forms/hyrax/etd_form.rb b/app/forms/hyrax/etd_form.rb index a21492df..71b685ff 100644 --- a/app/forms/hyrax/etd_form.rb +++ b/app/forms/hyrax/etd_form.rb @@ -59,18 +59,6 @@ def self.keyword_terms [:keyword, :research_field] end - def about_me_fields - [:creator, :graduation_date, :post_graduation_email] - end - - def about_my_program_fields - [:school, :department, :subfield, :partnering_agency, :degree, :submitting_type] - end - - def about_my_etd_fields - [:language, :abstract, :table_of_contents, :research_field] - end - def primary_pdf_name model.primary_pdf_file_name end