From 603ad1c653bb5c0cee2a2b48296e9cf8e2cce167 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Tue, 18 Sep 2018 12:58:28 +0100 Subject: [PATCH] Remove obsolete code --- lib/web/server.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/web/server.rb b/lib/web/server.rb index ea44391..6dfffe2 100644 --- a/lib/web/server.rb +++ b/lib/web/server.rb @@ -34,14 +34,6 @@ configure :test do end helpers do - def versioned_javascript(javascript) - version = File.mtime(File.join(Sinatra::Application.public_folder, - 'javascripts', - "#{javascript}.js")).to_i.to_s - - "/javascripts/#{javascript}.js?#{version}" - end - def end_of_day_quote @end_of_day_quote ||= begin quote = Quote::EndOfDay.new(query) @@ -80,10 +72,6 @@ helpers do end end -options '*' do - 200 -end - get '/' do # FIXME: We should cache this in production. parser = Redcarpet::Markdown.new(Redcarpet::Render::HTML,