Skip to content

Commit

Permalink
remove primes functions completely, similar to combinatorics
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed May 26, 2016
1 parent c284860 commit 57919fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 293 deletions.
291 changes: 0 additions & 291 deletions base/deprecated-primes.jl

This file was deleted.

12 changes: 10 additions & 2 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,16 @@ for deprecatedfunc in [:combinations, :factorial, :prevprod, :levicivita,
end
end

# Primes functions that have been moved out of base (#16481)
for deprecatedfunc in [:isprime, :primes, :primesmask, :factor]
@eval begin
$deprecatedfunc(args...) = error(string($deprecatedfunc, args,
" has been moved to the package Primes.jl.\n",
"Run Pkg.add(\"Primes\") to install Primes on Julia v0.5-"))
export $deprecatedfunc
end
end

#14335
@deprecate super(T::DataType) supertype(T)

Expand Down Expand Up @@ -1253,8 +1263,6 @@ end
@deprecate_binding WORD_SIZE Sys.WORD_SIZE

@deprecate showcompact_lim show
# prime numbers
include("deprecated-primes.jl")

# During the 0.5 development cycle, do not add any deprecations below this line
# To be deprecated in 0.6
Expand Down

0 comments on commit 57919fe

Please sign in to comment.