From d1b912f1d2430f023618de6e28f5b988d03c80bb Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 1 Feb 2014 11:23:06 +0100 Subject: [PATCH] Remove unused helpers --- app/helpers/application_helper.rb | 9 --------- app/helpers/asciicasts_helper.rb | 6 ------ 2 files changed, 15 deletions(-) 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)