Skip to content

Commit

Permalink
Merge pull request mtgred#7385 from NoahTheDuke/nb/remove-abs
Browse files Browse the repository at this point in the history
Remove abs now that we use clojure 1.11
  • Loading branch information
NoahTheDuke authored Apr 15, 2024
2 parents 53d9683 + a272670 commit f1e54fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/clj/game/core/turns.clj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[game.core.update :refer [update!]]
[game.core.winning :refer [flatline]]
[game.macros :refer [continue-ability req wait-for]]
[game.utils :refer [abs dissoc-in enumerate-str quantify]]
[game.utils :refer [dissoc-in enumerate-str quantify]]
[clojure.string :as string]))

(defn- turn-message
Expand Down
2 changes: 0 additions & 2 deletions src/clj/game/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
[]
(vals @all-cards))

(defn abs [n] (max n (- n)))

(defn safe-zero?
"`zero?` throws up on non numbers, so this is a safe version."
[n]
Expand Down
2 changes: 0 additions & 2 deletions src/cljs/nr/gameboard/board.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@
(when (not= "Identity" (:type card))
(send-command "move" {:card card :server server}))))

(defn abs [n] (max n (- n)))

;; touch support
(defonce touchmove (atom {}))

Expand Down

0 comments on commit f1e54fc

Please sign in to comment.