Skip to content

Commit

Permalink
Remove deprecated primes and combinatorics functions from Base (#18937)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored and tkelman committed Dec 29, 2016
1 parent dbbd7e5 commit aa7103a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,28 +194,6 @@ function tty_size()
return displaysize()
end

# Combinatorics functions that have been moved out of base (#13897)
# Note: only the two-argument form of factorial has been moved
for deprecatedfunc in [:combinations, :factorial, :prevprod, :levicivita,
:nthperm!, :nthperm, :parity, :partitions, :permutations]
@eval begin
$deprecatedfunc(args...) = error(string($deprecatedfunc, args,
" has been moved to the package Combinatorics.jl.\n",
"Run Pkg.add(\"Combinatorics\") to install Combinatorics on Julia v0.5 and later."))
export $deprecatedfunc
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 and later, and then run `using Primes`."))
export $deprecatedfunc
end
end

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

Expand Down

0 comments on commit aa7103a

Please sign in to comment.