Skip to content

Commit

Permalink
remove unused method from lib/dcv/components/child_viewer_behavior.rb…
Browse files Browse the repository at this point in the history
… (DLC-1012)
  • Loading branch information
barmintor committed Jun 27, 2024
1 parent 43d587e commit a7c55f0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/dcv/components/child_viewer_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a7c55f0

Please sign in to comment.