Delete AS::Dependencies.mark_for_unload

This commit is contained in:
Xavier Noria 2021-08-18 23:12:22 +02:00
parent 7788697797
commit 2105d1ed3e
1 changed files with 0 additions and 12 deletions

View File

@ -237,18 +237,6 @@ module ActiveSupport # :nodoc:
explicitly_unloadable_constants.include?(to_constant_name(const_desc))
end
# Mark the provided constant name for unloading. This constant will be
# unloaded on each request, not just the next one.
def mark_for_unload(const_desc)
name = to_constant_name const_desc
if explicitly_unloadable_constants.include? name
false
else
explicitly_unloadable_constants << name
true
end
end
# Convert the provided const desc to a qualified constant name (as a string).
# A module, class, symbol, or string may be provided.
def to_constant_name(desc) # :nodoc: