From 8390b96df38aac44ddd7009437d02117bef32fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=C5=9Fk=C4=B1n=20Gedik?= Date: Tue, 2 Feb 2016 17:20:44 +0200 Subject: [PATCH] remove unused methods --- src/kemal/handler.cr | 1 - src/kemal/response.cr | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 src/kemal/response.cr diff --git a/src/kemal/handler.cr b/src/kemal/handler.cr index 9dd8d6c..3ac918c 100644 --- a/src/kemal/handler.cr +++ b/src/kemal/handler.cr @@ -32,7 +32,6 @@ class Kemal::Handler < HTTP::Handler route = lookup.payload as Route context.request.url_params = lookup.params begin - context.response.content_type = "text/html" body = route.handler.call(context).to_s context.response.print body return context diff --git a/src/kemal/response.cr b/src/kemal/response.cr deleted file mode 100644 index 406bfa1..0000000 --- a/src/kemal/response.cr +++ /dev/null @@ -1,15 +0,0 @@ -class Kemal::Response - property headers - property status_code - property content_type - - def initialize - @status_code = 200 - @content_type = "text/html" - @headers = HTTP::Headers{"Content-Type": @content_type} - end - - def content_type=(content_type) - @headers["Content-Type"] = content_type - end -end