Skip to content

Commit 5dc2472

Browse files
committed
cleanup exports
1 parent 2b1d435 commit 5dc2472

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/DataStructures.jl

+3-10
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,8 @@ module DataStructures
55
isbitsunion, isiterable, dict_with_eltype, KeySet, Callable, _tablesz,
66
findnextnot, unsafe_getindex, unsafe_setindex!, peek
77

8-
9-
108
import Base.insert!
11-
# Exports for old version of julia where Base doesn't export this
12-
export peek
13-
export popat!
149

15-
using Compat # Provides Base.Order.ReverseOrdering(). May remove this line with julia 1.4
1610
using OrderedCollections
1711
using OrderedCollections: isordered
1812
export OrderedDict, OrderedSet, LittleDict
@@ -36,12 +30,11 @@ module DataStructures
3630

3731
export Trie, subtrie, keys_with_prefix, partial_path, find_prefixes
3832

39-
export LinkedList, Nil, Cons, nil, cons, head, tail, list, filter, cat,
40-
reverse
33+
export LinkedList, Nil, Cons, nil, cons, head, tail, list
4134
export MutableLinkedList
4235
export SortedDict, SortedMultiDict, SortedSet
43-
export SDToken, SDSemiToken, SMDToken, SMDSemiToken
44-
export SetToken, SetSemiToken
36+
export SMDSemiToken, SMDToken
37+
export SetSemiToken
4538
export pastendsemitoken, beforestartsemitoken
4639
export pastendtoken, beforestarttoken
4740
export searchsortedafter, searchequalrange

src/priorityqueue.jl

+1-5
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,7 @@ function Base.popfirst!(pq::PriorityQueue)
323323
return x
324324
end
325325

326-
if isdefined(Base, :popat!) # We will overload if it is defined, else we define on our own
327-
import Base: popat!
328-
end
329-
330-
function popat!(pq::PriorityQueue, key)
326+
function Base.popat!(pq::PriorityQueue, key)
331327
idx = pq.index[key]
332328
force_up!(pq, idx)
333329
popfirst!(pq)

0 commit comments

Comments
 (0)