diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d5a2372..14c6faf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -34,15 +34,6 @@ module ApplicationHelper email ? "'#{email}'".html_safe : 'null' end - def markdown(&block) - text = capture(&block) - MKD_RENDERER.render(capture(&block)).html_safe - end - - def indented_text(string, width) - string.lines.map { |l| "#{' ' * width}#{l}" }.join('') - end - def category_links(current_category, &blk) links = CategoryLinks.new(current_category, self) diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 9bb446f..bfcc2f0 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -5,12 +5,6 @@ module AsciicastsHelper options: options end - # TODO: move to AsciicastDecorator - def link_to_delete_asciicast(name, asciicast) - link_to name, asciicast_path(asciicast), :method => :delete, - :data => { :confirm => 'Really delete this asciicast?' } - end - private def serialized_asciicast(asciicast)