- Issue created by @kim.pepper
- First commit to issue fork.
- Merge request !10553Issue #3493958 by kim.pepper, jquijano: Remove File token hook dead code → (Closed) created by Unnamed author
Removed $url_options as suggested, LanguageManagerInterface was not referenced in code.
- 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Sorry I should have postponed this on 📌 Split File hooks into separate classes Active
- Status changed to Needs work
3 months ago 11:39pm 11 March 2025 - 🇺🇸United States dcam
The related issue to split up the File hooks was committed. The changes in the existing MR will need to be applied in the new TokenHooks class. This seems like a Novice task to me.
Rebased branch to incorporate the latest updates. Made changes to the TokenHook class. Note: The CronHook file has been rewritten due to updates, rendering the original modifications unnecessary.
- 🇮🇳India adwivedi008
Hello @jquijano,
I have checked the changes and it looks good to me
Also, there is no merge conflict as you already rebased the branchSeems good to me, moving the issue to RTBC and let's wait for somemore feedback
- 🇳🇿New Zealand quietone
Whenever dead code is removed we should do some digging to make sure that we aren't accidentally removing the last remnant of something that should be implemented. It is possible that this is accidentally dead code.
Therefor I used
git log -L 762,767:core/modules/file/file.module
to find out when$url_options was added
. It was incommit 988abc27f8b2f1a05e42932a39954dec4f18c09a Author: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Wed Jul 24 13:00:06 2013 +0100 Issue #2045189 by jlindsey15: Move file entity dependent code in includes/file.inc and system.module to file.module.
I then read that issue and found $url_options in the first patch there. It was removed in the next patch after feedback from berdir. It was originally used in the several of the cases following the line of code and those were re-written. I think that confirms that we are not losing anything here.
-
quietone →
committed 56e3f8e0 on 11.x
Issue #3493958 by jquijano, kim.pepper, dcam, adwivedi008: Remove File...
-
quietone →
committed 56e3f8e0 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.