Skip to content

Commit 87cc49e

Browse files
committed
Remove IAssociative for lists
1 parent aa4f76d commit 87cc49e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/xitdb/linked_list.clj

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,22 +134,6 @@
134134
(common/-read-from-cursor (.putCursor wlal i))
135135
not-found))
136136

137-
clojure.lang.Associative
138-
(assoc [this k v]
139-
(when-not (integer? k)
140-
(throw (IllegalArgumentException. "Key must be integer")))
141-
;; LinkedArrayList doesn't support random access assoc operations
142-
;; This might require a different implementation
143-
(throw (UnsupportedOperationException. "LinkedArrayList doesn't support random access"))
144-
this)
145-
146-
(containsKey [this k]
147-
(and (integer? k) (>= k 0) (< k (.count wlal))))
148-
149-
(entryAt [this k]
150-
(when (.containsKey this k)
151-
(clojure.lang.MapEntry. k (.valAt this k))))
152-
153137
clojure.lang.ILookup
154138
(valAt [this k]
155139
(.valAt this k nil))

0 commit comments

Comments
 (0)