Remove obsolete code

This commit is contained in:
Hakan Ensari 2018-09-18 12:58:28 +01:00
parent d107134548
commit 603ad1c653

View File

@ -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,