Skip to content

Commit

Permalink
cleanup exports
Browse files Browse the repository at this point in the history
  • Loading branch information
laborg committed Oct 27, 2023
1 parent 2b1d435 commit 5dc2472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 3 additions & 10 deletions src/DataStructures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ module DataStructures
isbitsunion, isiterable, dict_with_eltype, KeySet, Callable, _tablesz,
findnextnot, unsafe_getindex, unsafe_setindex!, peek



import Base.insert!
# Exports for old version of julia where Base doesn't export this
export peek
export popat!

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

export Trie, subtrie, keys_with_prefix, partial_path, find_prefixes

export LinkedList, Nil, Cons, nil, cons, head, tail, list, filter, cat,
reverse
export LinkedList, Nil, Cons, nil, cons, head, tail, list
export MutableLinkedList
export SortedDict, SortedMultiDict, SortedSet
export SDToken, SDSemiToken, SMDToken, SMDSemiToken
export SetToken, SetSemiToken
export SMDSemiToken, SMDToken
export SetSemiToken
export pastendsemitoken, beforestartsemitoken
export pastendtoken, beforestarttoken
export searchsortedafter, searchequalrange
Expand Down
6 changes: 1 addition & 5 deletions src/priorityqueue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,7 @@ function Base.popfirst!(pq::PriorityQueue)
return x
end

if isdefined(Base, :popat!) # We will overload if it is defined, else we define on our own
import Base: popat!
end

function popat!(pq::PriorityQueue, key)
function Base.popat!(pq::PriorityQueue, key)
idx = pq.index[key]
force_up!(pq, idx)
popfirst!(pq)
Expand Down

0 comments on commit 5dc2472

Please sign in to comment.