Skip to content

Commit 78c5e48

Browse files
committed
remove primes functions completely, similar to combinatorics
1 parent ed04d9f commit 78c5e48

File tree

2 files changed

+10
-294
lines changed

2 files changed

+10
-294
lines changed

base/deprecated-primes.jl

-291
This file was deleted.

base/deprecated.jl

+10-3
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,16 @@ for deprecatedfunc in [:combinations, :factorial, :prevprod, :levicivita,
934934
end
935935
end
936936

937+
# Primes functions that have been moved out of base (#16481)
938+
for deprecatedfunc in [:isprime, :primes, :primesmask, :factor]
939+
@eval begin
940+
$deprecatedfunc(args...) = error(string($deprecatedfunc, args,
941+
" has been moved to the package Primes.jl.\n",
942+
"Run Pkg.add(\"Primes\") to install Primes on Julia v0.5-"))
943+
export $deprecatedfunc
944+
end
945+
end
946+
937947
#14335
938948
@deprecate super(T::DataType) supertype(T)
939949

@@ -1252,9 +1262,6 @@ end
12521262

12531263
@deprecate_binding WORD_SIZE Sys.WORD_SIZE
12541264

1255-
# prime numbers
1256-
include("deprecated-primes.jl")
1257-
12581265
# During the 0.5 development cycle, do not add any deprecations below this line
12591266
# To be deprecated in 0.6
12601267

0 commit comments

Comments
 (0)