Skip to content

Commit

Permalink
Remove unused exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Apr 25, 2022
1 parent ffb23a1 commit c48c80f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/ConcurrentUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ export
@tasklet,
# Constructors
Guard,
NotAcquirableError,
NotSetError,
OccupiedError,
Promise,
ReadWriteGuard,
ThreadLocalStorage,
TooManyTries
ThreadLocalStorage

export Try, Err, Ok
using Try: Try, Ok, Err
Expand All @@ -34,11 +32,6 @@ struct OccupiedError{T} <: InternalPrelude.Exception
end

struct NotSetError <: InternalPrelude.Exception end
struct NotAcquirableError <: InternalPrelude.Exception end
struct TooManyTries <: InternalPrelude.Exception
nspins::Int
ntries::Int
end

#=
InternalPrelude.@exported_function isacquirable
Expand Down Expand Up @@ -104,10 +97,8 @@ using ..ConcurrentUtils:
ConcurrentUtils,
GenericGuard,
GenericReadWriteGuard,
NotAcquirableError,
NotSetError,
OccupiedError,
TooManyTries,
lock_read,
race_fetch_or!,
spinfor,
Expand Down

0 comments on commit c48c80f

Please sign in to comment.