diff options
author | Xavier Noria <fxn@hashref.com> | 2016-03-16 08:33:31 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-03-16 08:33:31 +0100 |
commit | bf6b65432ba3d2765c1fcea90d9969eb87f49625 (patch) | |
tree | 6a459e66fc078b836ef92a3432185c10c7416449 /actionpack/lib/action_dispatch/routing/endpoint.rb | |
parent | 4b80395130946094a45279ede9ad6a627ff02b08 (diff) | |
download | rails-bf6b65432ba3d2765c1fcea90d9969eb87f49625.tar.gz rails-bf6b65432ba3d2765c1fcea90d9969eb87f49625.tar.bz2 rails-bf6b65432ba3d2765c1fcea90d9969eb87f49625.zip |
no need to clear an unusued collection
If the code reaches that line new_constants is no longer needed.
We only need here to iterate over it to discard stuff and done.
Note that constant_watch_stack.new_constants returns a new
reference each time it is invoked, so that #clear call was not
cleaning state in some internal structure (which would have been
a bit dirty as well at this level of coupling).
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/endpoint.rb')
0 files changed, 0 insertions, 0 deletions