diff --git a/app/helpers/assignments_helper.rb b/app/helpers/assignments_helper.rb index 412567084..6f6a01ad5 100644 --- a/app/helpers/assignments_helper.rb +++ b/app/helpers/assignments_helper.rb @@ -6,15 +6,6 @@ def cancel_editing_assignment_path(assignment) cancel_new_assignment_path(params: { lecture: assignment.lecture }) end - def has_documents?(assignment) # rubocop:todo Naming/PredicateName - return false unless assignment.medium - - assignment.medium.video || assignment.medium.manuscript || - assignment.medium.geogebra || - assignment.medium.external_reference_link.present? || - (assignment.medium.sort == "Quiz" && assignment.medium.quiz_graph) - end - def file_button_text(assignment) return I18n.t("basics.file") unless assignment.accepted_file_type == ".pdf"