New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove 2 lines of commented code in the updater library #11520
Conversation
I have tested this item ✅ successfully on a429f4d This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11520. |
I have tested this item ✅ successfully on a429f4d This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11520. |
Are you sure about this. Has the todo ben done On 8 August 2016 at 19:59, Lukas Mentel notifications@github.com wrote:
Brian Teeman |
|
|
I am asking if the to-do has been done. Has the code been removed.
Otherwise it makes no sense that the comment was put there
|
The todo was to remove the commented code ;) /**
* Character Parser Function
*
* @param object $parser Parser object.
* @param object $data The data.
*
* @return void
*
* @note This is public because its called externally.
* @since 11.1
*/
public function _characterData($parser, $data)
{
$tag = $this->_getLastTag();
// @todo remove code: if(!isset($this->$tag->_data)) $this->$tag->_data = '';
// @todo remove code: $this->$tag->_data .= $data;
// Throw the data for this item together
$tag = strtolower($tag);
if ($tag == 'tag')
{
$this->currentUpdate->stability = $this->stabilityTagToInteger((string) $data);
return;
}
if (isset($this->currentUpdate->$tag))
{
$this->currentUpdate->$tag->_data .= $data;
}
} There is no code like that in that method (expected the comment itself) |
Strange it wasn't removed at the time then.
|
Yes 😄 |
Those lines were done in a platform update in 2012. I'm pretty confident we'd have found any issues in the last 4 years if there were any :P |
Summary of Changes
This PR just removes two lines of commented code
Testing Instructions
This just remove 2 comments so i don't see how this can be tested ;)
Documentation Changes Required
None 😄