Skip to content

Commit 519d557

Browse files
author
Yannick Scherer
committed
remove 'fast-zip' dependency. (see #26)
1 parent d403d0e commit 519d557

21 files changed

+71
-80
lines changed

project.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
:repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}
77
:dependencies [[org.clojure/clojure "1.6.0"]
88
[org.clojure/tools.reader "0.8.13"]
9-
[fast-zip "0.5.2"]
109
[potemkin "0.3.11"]]
1110
:profiles {:dev {:dependencies [[midje "1.6.3" :exclusions [joda-time]]
1211
[joda-time "2.7"]]

src/rewrite_clj/zip.clj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
[rewrite-clj
1717
[parser :as p]
1818
[node :as node]]
19-
[fast-zip.core :as z]
19+
[clojure.zip :as z]
2020
[potemkin :refer [import-vars]]))
2121

2222
;; ## API Facade
2323

2424
(import-vars
25-
[fast-zip.core
25+
[clojure.zip
2626
node root]
2727

2828
[rewrite-clj.zip.base
@@ -92,17 +92,17 @@
9292
:arglists `(quote ~arglists)})]
9393
`(def ~sym ~base)))
9494

95-
(defbase right* fast-zip.core/right)
96-
(defbase left* fast-zip.core/left)
97-
(defbase up* fast-zip.core/up)
98-
(defbase down* fast-zip.core/down)
99-
(defbase next* fast-zip.core/next)
100-
(defbase prev* fast-zip.core/prev)
101-
(defbase rightmost* fast-zip.core/rightmost)
102-
(defbase leftmost* fast-zip.core/leftmost)
103-
(defbase replace* fast-zip.core/replace)
104-
(defbase edit* fast-zip.core/edit)
105-
(defbase remove* fast-zip.core/remove)
95+
(defbase right* clojure.zip/right)
96+
(defbase left* clojure.zip/left)
97+
(defbase up* clojure.zip/up)
98+
(defbase down* clojure.zip/down)
99+
(defbase next* clojure.zip/next)
100+
(defbase prev* clojure.zip/prev)
101+
(defbase rightmost* clojure.zip/rightmost)
102+
(defbase leftmost* clojure.zip/leftmost)
103+
(defbase replace* clojure.zip/replace)
104+
(defbase edit* clojure.zip/edit)
105+
(defbase remove* clojure.zip/remove)
106106

107107
;; ## DEPRECATED
108108

src/rewrite_clj/zip/base.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[node :as node]
55
[parser :as p]]
66
[rewrite-clj.zip.whitespace :as ws]
7-
[fast-zip.core :as z]))
7+
[clojure.zip :as z]))
88

99
;; ## Zipper
1010

src/rewrite_clj/zip/edit.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[utils :as u]
88
[whitespace :as ws]]
99
[rewrite-clj.node :as node]
10-
[fast-zip.core :as z]))
10+
[clojure.zip :as z]))
1111

1212
;; ## In-Place Modification
1313

src/rewrite_clj/zip/find.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[base :as base]
55
[move :as m]]
66
[rewrite-clj.node :as node]
7-
[fast-zip.core :as z]))
7+
[clojure.zip :as z]))
88

99
;; ## Helpers
1010

src/rewrite_clj/zip/insert.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[base :as base]
44
[whitespace :as ws]]
55
[rewrite-clj.node :as node]
6-
[fast-zip.core :as z]))
6+
[clojure.zip :as z]))
77

88
(def ^:private space
99
(node/spaces 1))

src/rewrite_clj/zip/move.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(ns ^:no-doc rewrite-clj.zip.move
22
(:refer-clojure :exclude [next])
33
(:require [rewrite-clj.zip.whitespace :as ws]
4-
[fast-zip.core :as z]))
4+
[clojure.zip :as z]))
55

66
(defn right
77
"Move right to next non-whitespace/non-comment location."

src/rewrite_clj/zip/remove.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[move :as m]
55
[utils :as u]
66
[whitespace :as ws]]
7-
[fast-zip.core :as z]))
7+
[clojure.zip :as z]))
88

99
(defn- remove-trailing-space
1010
"Remove all whitespace following a given node."

src/rewrite_clj/zip/seq.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[find :as f]
77
[insert :as i]
88
[move :as m]]
9-
[fast-zip.core :as z]))
9+
[clojure.zip :as z]))
1010

1111
;; ## Predicates
1212

src/rewrite_clj/zip/subedit.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(ns ^:no-doc rewrite-clj.zip.subedit
22
(:require [rewrite-clj.zip.base :as base]
3-
[fast-zip.core :as z]))
3+
[clojure.zip :as z]))
44

55
;; ## Edit Scope
66

0 commit comments

Comments
 (0)