Skip to content

Commit

Permalink
[MAINTENANCE] Remove dead code - obsolete methods
Browse files Browse the repository at this point in the history
**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.
  • Loading branch information
mark-dce committed Sep 25, 2024
1 parent e940a20 commit f6cf7bc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/forms/hyrax/etd_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6cf7bc

Please sign in to comment.