Skip to content

Commit

Permalink
Deprecate to_index(::Tuple)
Browse files Browse the repository at this point in the history
While this was an internal function, it was used in at least a few other packages.  It is easy to deprecate, so we may as well do so.
  • Loading branch information
mbauman committed Jun 27, 2015
1 parent 1220d65 commit 1bd5d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ function to_index{T<:Real}(A::AbstractArray{T})
Int[to_index_nodep(x) for x in A]
end

function to_index(I::Tuple)
depwarn("to_index(I::Tuple) is deprecated, use to_indexes(I...) instead.", :to_index)
to_indexes(I...)
end

function float_isvalid{T<:Union{Float32,Float64}}(s::AbstractString, out::Array{T,1})
tf = tryparse(T, s)
isnull(tf) || (out[1] = get(tf))
Expand Down

0 comments on commit 1bd5d80

Please sign in to comment.