Skip to content

Commit

Permalink
Merge #1351
Browse files Browse the repository at this point in the history
1351: Fix enable_threading redefinition warning r=charleskawczynski a=charleskawczynski

I forgot that ``@deprecate`` defines the old method. This PR removes the old method to fix the redefinition warning.

Co-authored-by: Charles Kawczynski <[email protected]>
  • Loading branch information
bors[bot] and charleskawczynski authored Jun 29, 2023
2 parents f403dea + f817149 commit af6389a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ and running julia with `julia --nthreads=N ...`
This function is deprecated in version `0.10.42`.
Please use the ClimaComms context for threading.
"""
enable_threading() = false
function enable_threading end

Base.@deprecate enable_threading() deprecated_enable_threading() false
deprecated_enable_threading() = false

Expand Down

0 comments on commit af6389a

Please sign in to comment.