From 6321145ba58dc4773b8c866abecc49180dfe5309 Mon Sep 17 00:00:00 2001 From: Ben Smith-Mannschott Date: Mon, 23 Aug 2010 20:30:51 +0200 Subject: [PATCH] remove derecated clojure.contrib.apply-macro Signed-off-by: Stuart Sierra --- modules/apply-macro/pom.xml | 16 ------- .../clojure/clojure/contrib/apply_macro.clj | 45 ------------------- modules/complete/pom.xml | 5 --- .../clojure/clojure/contrib/gen_html_docs.clj | 1 - pom.xml | 1 - 5 files changed, 68 deletions(-) delete mode 100644 modules/apply-macro/pom.xml delete mode 100644 modules/apply-macro/src/main/clojure/clojure/contrib/apply_macro.clj diff --git a/modules/apply-macro/pom.xml b/modules/apply-macro/pom.xml deleted file mode 100644 index 2304879184..0000000000 --- a/modules/apply-macro/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - 4.0.0 - - org.clojure.contrib - parent - 1.3.0-SNAPSHOT - ../parent - - apply-macro - - - \ No newline at end of file diff --git a/modules/apply-macro/src/main/clojure/clojure/contrib/apply_macro.clj b/modules/apply-macro/src/main/clojure/clojure/contrib/apply_macro.clj deleted file mode 100644 index 9df8540718..0000000000 --- a/modules/apply-macro/src/main/clojure/clojure/contrib/apply_macro.clj +++ /dev/null @@ -1,45 +0,0 @@ -;;; apply_macro.clj: make macros behave like functions - -;; by Stuart Sierra, http://stuartsierra.com/ -;; January 28, 2009 - -;; Copyright (c) Stuart Sierra, 2009. All rights reserved. The use -;; and distribution terms for this software are covered by the Eclipse -;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) -;; which can be found in the file epl-v10.html at the root of this -;; distribution. By using this software in any fashion, you are -;; agreeing to be bound by the terms of this license. You must not -;; remove this notice, or any other, from this software. - - -;; Don't use this. I mean it. It's evil. How evil? You can't -;; handle it, that's how evil it is. That's right. I did it so you -;; don't have to, ok? Look but don't touch. Use this lib and you'll -;; go blind. - -;; DEPRECATED in 1.2 with no replacement. - -(ns ^{:deprecated "1.2"} - clojure.contrib.apply-macro) - -;; Copied from clojure.core/spread, which is private. -(defn- spread - "Flatten final argument list as in apply." - [arglist] - (cond - (nil? arglist) nil - (nil? (rest arglist)) (seq (first arglist)) - :else (cons (first arglist) (spread (rest arglist))))) - -(defmacro apply-macro - "This is evil. Don't ever use it. It makes a macro behave like a - function. Seriously, how messed up is that? - - Evaluates all args, then uses them as arguments to the macro as with - apply. - - (def things [true true false]) - (apply-macro and things) - ;; Expands to: (and true true false)" - [macro & args] - (cons macro (spread (map eval args)))) diff --git a/modules/complete/pom.xml b/modules/complete/pom.xml index 624d84fb5a..d1c4bb9c0e 100644 --- a/modules/complete/pom.xml +++ b/modules/complete/pom.xml @@ -45,11 +45,6 @@ agent-utils 1.3.0-SNAPSHOT - - org.clojure.contrib - apply-macro - 1.3.0-SNAPSHOT - org.clojure.contrib base64 diff --git a/modules/gen-html-docs/src/main/clojure/clojure/contrib/gen_html_docs.clj b/modules/gen-html-docs/src/main/clojure/clojure/contrib/gen_html_docs.clj index 731665107c..466c3fb449 100644 --- a/modules/gen-html-docs/src/main/clojure/clojure/contrib/gen_html_docs.clj +++ b/modules/gen-html-docs/src/main/clojure/clojure/contrib/gen_html_docs.clj @@ -475,7 +475,6 @@ emits the generated HTML to the path named by path." 'clojure.zip 'clojure.xml 'clojure.contrib.accumulators - 'clojure.contrib.apply-macro 'clojure.contrib.auto-agent 'clojure.contrib.combinatorics 'clojure.contrib.command-line diff --git a/pom.xml b/pom.xml index ad38a1fa6e..4a1696d100 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,6 @@ modules/accumulators modules/agent-utils - modules/apply-macro modules/base64 modules/classpath modules/combinatorics