Skip to content

Commit 77a0292

Browse files
author
Paula Gearon
committed
cleaned up functions that aren't being used
1 parent ba94464 commit 77a0292

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/asami/durable/graph.cljc

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
post-index (tuples/create-tuple-index name post-name r-post)
235235
ospt-index (tuples/create-tuple-index name ospt-name r-ospt)
236236
tspo-index #?(:clj (flat-file/record-store name tspo-name tuples/tuple-size-bytes) :cljs nil)
237-
data-pool (pool/create-pool name r-pool)]
237+
data-pool (pool/create-pool name r-pool nil)]
238238
(->BlockGraph spot-index post-index ospt-index tspo-index data-pool node-allocator id-checker nil nil)))
239239

240240
(defn new-merged-block-graph

src/asami/durable/tree.cljc

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929

3030
(def ^:const node-cache-size 1024)
3131

32+
(defn to-hex
33+
[n]
34+
#?(:clj (Long/toHexString n)
35+
:cljs (.toString n 16)))
36+
3237
(defprotocol TreeNode
3338
(get-parent [this] "Returns the parent node. Not the Node ID, but the node object.")
3439
(get-child-id [this side] "Gets the Node ID of the child on the given side")
@@ -96,7 +101,7 @@
96101

97102
Object
98103
(toString [this]
99-
(let [payload (mapv #(Long/toHexString (get-long this %)) (range (/ (- (:size block) header-size) 8)))]
104+
(let [payload (mapv #(to-hex (get-long this %)) (range (/ (- (:size block) header-size) 8)))]
100105
(str "Node[" (get-id this) "] L:" (get-child-id this left) " R:" (get-child-id this right) " payload:"
101106
payload)))
102107

src/asami/durable/tuples.cljc

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,4 +601,4 @@
601601
([name order-name]
602602
(create-tuple-index name order-name nil))
603603
([name order-name root-id]
604-
(common-utils/named-storage (partial open-tuples order-name) name root-id)))
604+
(common-utils/named-storage (partial open-tuples order-name) name root-id nil)))

0 commit comments

Comments
 (0)