From c4ec9064063f3b15aeb25feb85a3afaaa02008ba Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 13 Aug 2023 22:06:32 +0200 Subject: Remove leftover static assets specific to individual blog posts --- .../viz/2/quil/middlewares/deprecated_options.cljc | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/http/static/viz/2/quil/middlewares/deprecated_options.cljc (limited to 'src/http/static/viz/2/quil/middlewares/deprecated_options.cljc') diff --git a/src/http/static/viz/2/quil/middlewares/deprecated_options.cljc b/src/http/static/viz/2/quil/middlewares/deprecated_options.cljc deleted file mode 100644 index 6ed40d2..0000000 --- a/src/http/static/viz/2/quil/middlewares/deprecated_options.cljc +++ /dev/null @@ -1,26 +0,0 @@ -(ns quil.middlewares.deprecated-options) - -(def ^:private deprecated - {:decor ["2.0" "Try :features [:present] for similar effect"] - :target ["2.0" "Use :features [:keep-on-top] instead."] - :safe-draw-fn ["2.0" "Use :features [:no-safe-fns] instead."]}) - -(defn- check-features-vector [features] - (let [features (set features)] - (when (features :no-safe-draw) - (println "Feature :no-safe-draw was renamed to :no-safe-fns in Quil 2.1." - "Use :feature [:no-safe-fns] now.")) - (disj features :no-safe-draw))) - -(defn deprecated-options - "Checks if options map contains deprected options and removes them. - Prints messages how to fix deprecated functions." - [options] - (let [options (update-in options [:features] check-features-vector)] - (->> (for [[name value] options] - (if-let [[version message] (deprecated name)] - (do (println name "option was removed in Quil" version "." message) - nil) - [name value])) - (remove nil?) - (into {})))) -- cgit v1.2.3