Skip to content

Commit

Permalink
Removed core.incubator dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed May 10, 2014
1 parent 7991b11 commit 793eb95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion project.clj
Expand Up @@ -4,7 +4,6 @@
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/core.incubator "0.1.0"]
[org.clojure/tools.macro "0.1.0"]
[clout "1.2.0"]
[ring/ring-core "1.2.2"]]
Expand Down
5 changes: 2 additions & 3 deletions src/compojure/core.clj
Expand Up @@ -3,7 +3,6 @@
(:require [clojure.string :as str])
(:use clout.core
compojure.response
[clojure.core.incubator :only (-?>)]
[clojure.tools.macro :only (name-with-attributes)]))

(defn- method-matches?
Expand All @@ -24,8 +23,8 @@
(or (nil? method) (method-matches? method request))
(handler request)
(and (= :get method) (= :head (:request-method request)))
(-?> (handler request)
(assoc :body nil)))))
(if-let [response (handler request)]
(assoc response :body nil)))))

(defn- assoc-route-params
"Associate route parameters with the request map."
Expand Down
3 changes: 1 addition & 2 deletions src/compojure/response.clj
@@ -1,7 +1,6 @@
(ns compojure.response
"Methods for generating Ring response maps"
(:use [clojure.core.incubator :only (-?>)]
[ring.util.response :only (response content-type)])
(:use [ring.util.response :only (response content-type)])
(:require [clojure.java.io :as io])
(:import [java.io File InputStream]
[java.net URL]
Expand Down

0 comments on commit 793eb95

Please sign in to comment.