Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2011 at 22:06 UTC
Updated:
13 Jul 2012 at 20:21 UTC
Jump to comment: Most recent file
more cruft to be removed; not being used anymore:
media_url_filter and _media_url_parse_full_links functions.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | remove_unneeded_code-1268268-2.patch | 2.69 KB | idflood |
Comments
Comment #1
aaron commentedand _media_url_curry as well (all from /includes/media.filter.inc)
Comment #2
idflood commentedHere is a simple patch which remove these functions. I've double checked that they weren't used anywhere and verified some more functions.
Comment #3
dddave commented#2: remove_unneeded_code-1268268-2.patch queued for re-testing.
Comment #4
devin carlson commentedI searched through the Media codebase and
media_url_filter()is no longer called anywhere. The function also has two helper functions_media_url_parse_full_links()and_media_url_curry().The patch in #2 still applies cleanly to 7.x-2.x-dev and removes the three functions.
Comment #5
dave reidOk confirmed as well. I removed the code and moved it to a Gist: https://gist.github.com/3020238 so that we still have it somewhere in case we need to bring it back or someone else wants to use it.
Comment #6
dave reidCommitted #2 to 7.x-2.x. I also marked the 7.x-1.x functions as officially deprecated.
http://drupalcode.org/project/media.git/commit/1d3f52f1 (7.x-2.x)
http://drupalcode.org/project/media.git/commit/93b4d71 (7.x-1.x)