From a7c55f09694369ac3e1dfbcfe605c1267321ec8b Mon Sep 17 00:00:00 2001 From: Benjamin Armintor Date: Wed, 26 Jun 2024 22:44:59 -0400 Subject: [PATCH] remove unused method from lib/dcv/components/child_viewer_behavior.rb (DLC-1012) --- lib/dcv/components/child_viewer_behavior.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/dcv/components/child_viewer_behavior.rb b/lib/dcv/components/child_viewer_behavior.rb index e47bcad0..a4d0a62f 100644 --- a/lib/dcv/components/child_viewer_behavior.rb +++ b/lib/dcv/components/child_viewer_behavior.rb @@ -3,16 +3,5 @@ module ChildViewerBehavior def child_title_for(child) @document['title_display_ssm'].present? && child[:title] == @document['title_display_ssm'].first ? ' '.html_safe : child[:title] end - - def child_viewer_component_for(child: , child_index:) - dc_type_string = child[:dc_type].present? ? child[:dc_type].underscore.gsub(/\s+/, '_') : '' - component_class = Dcv::ContentAggregator::ChildViewer::ImageComponent - if can_access_asset?(child.with_indifferent_access) - component_class = Dcv::ContentAggregator::ChildViewer::SoundComponent if 'sound' == dc_type_string - component_class = Dcv::ContentAggregator::ChildViewer::MovingImageComponent if 'moving_image' == dc_type_string - component_class = Dcv::ContentAggregator::ChildViewer::SoftwareComponent if 'software' == dc_type_string - end - component_class.new(document: @document, local_downloads: @local_downloads, child: child, child_index: child_index) - end end end \ No newline at end of file