@@ -202,48 +202,7 @@ next(p::Union{Process, ProcessChain}, i::Int) = (getindex(p, i), i + 1)
202202 return i == 1 ? getfield (p, p. openstream) : p
203203end
204204
205- # also remove all support machinery in src for current_module when removing this deprecation
206- # and make Base.include an error
207- _current_module () = ccall (:jl_get_current_module , Ref{Module}, ())
208- @noinline function binding_module (s:: Symbol )
209- depwarn (" `binding_module(symbol)` is deprecated, use `binding_module(module, symbol)` instead." , :binding_module )
210- return binding_module (_current_module (), s)
211- end
212- export expand
213- @noinline function expand (@nospecialize (x))
214- depwarn (" `expand(x)` is deprecated, use `Meta.lower(module, x)` instead." , :expand )
215- return Meta. lower (_current_module (), x)
216- end
217- @noinline function macroexpand (@nospecialize (x))
218- depwarn (" `macroexpand(x)` is deprecated, use `macroexpand(module, x)` instead." , :macroexpand )
219- return macroexpand (_current_module (), x)
220- end
221- @noinline function isconst (s:: Symbol )
222- depwarn (" `isconst(symbol)` is deprecated, use `isconst(module, symbol)` instead." , :isconst )
223- return isconst (_current_module (), s)
224- end
225- @noinline function include_string (txt:: AbstractString , fname:: AbstractString )
226- depwarn (" `include_string(string, fname)` is deprecated, use `include_string(module, string, fname)` instead." , :include_string )
227- return include_string (_current_module (), txt, fname)
228- end
229- @noinline function include_string (txt:: AbstractString )
230- depwarn (" `include_string(string)` is deprecated, use `include_string(module, string)` instead." , :include_string )
231- return include_string (_current_module (), txt, " string" )
232- end
233-
234- """
235- current_module() -> Module
236-
237- Get the *dynamically* current `Module`, which is the `Module` code is currently being read
238- from. In general, this is not the same as the module containing the call to this function.
239-
240- DEPRECATED: use `@__MODULE__` instead
241- """
242- @noinline function current_module ()
243- depwarn (" `current_module()` is deprecated, use `@__MODULE__` instead." , :current_module )
244- return _current_module ()
245- end
246- export current_module
205+ # remove all support machinery in src for current_module
247206
248207@deprecate_binding colon (:)
249208
@@ -361,8 +320,6 @@ function OverflowError()
361320end
362321
363322@deprecate fieldnames (v) fieldnames (typeof (v))
364- # nfields(::Type) deprecation in builtins.c: update nfields tfunc in compiler/tfuncs.jl when it is removed.
365- # also replace `_nfields` with `nfields` in summarysize.c when this is removed.
366323
367324# PR #22182
368325@deprecate is_apple Sys. isapple
@@ -524,24 +481,6 @@ function countnz(x)
524481 return count (t -> t != 0 , x)
525482end
526483
527- # issue #14470
528- # TODO : More deprecations must be removed in src/cgutils.cpp:emit_array_nd_index()
529- # TODO : Re-enable the disabled tests marked PLI
530- # On the Julia side, this definition will gracefully supersede the new behavior (already coded)
531- @inline function checkbounds_indices (:: Type{Bool} , IA:: Tuple{Any,Vararg{Any}} , :: Tuple{} )
532- any (x-> unsafe_length (x)== 0 , IA) && return false
533- any (x-> unsafe_length (x)!= 1 , IA) && return _depwarn_for_trailing_indices (IA)
534- return true
535- end
536- function _depwarn_for_trailing_indices (n:: Integer ) # Called by the C boundscheck
537- depwarn (" omitting indices for non-singleton trailing dimensions is deprecated. Add `1`s as trailing indices or use `reshape(A, Val($n ))` to make the dimensionality of the array match the number of indices." , (:getindex , :setindex! , :view ))
538- true
539- end
540- function _depwarn_for_trailing_indices (t:: Tuple )
541- depwarn (" omitting indices for non-singleton trailing dimensions is deprecated. Add `$(join (map (first, t),' ,' )) ` as trailing indices or use `reshape` to make the dimensionality of the array match the number of indices." , (:getindex , :setindex! , :view ))
542- true
543- end
544-
545484# issue #22791
546485@deprecate select partialsort
547486@deprecate select! partialsort!
@@ -774,9 +713,6 @@ findprev(pred::Function, A, i::Integer) = findprev_internal(pred, A, i)
774713@deprecate parse (str:: AbstractString , pos:: Int , ; kwargs... ) Meta. parse (str, pos; kwargs... )
775714@deprecate_binding ParseError Meta. ParseError
776715
777- # issue #20899
778- # TODO : delete JULIA_HOME deprecation in src/init.c
779-
780716# cumsum and cumprod have deprecations in multidimensional.jl
781717# when the message is removed, the `dims` keyword argument should become required.
782718
0 commit comments