? ? Pending

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
14 Apr 2017

I'm pretty sure that the method JUpdater::update() is dead code. It never ran and it never will.
It is supposed to "Finds an update for an extension", but this job is actually done by JUpdater::findUpdates() instead.
It also would cause a fatal error, since it contains a call to JUpdate::install(), which doesn't exists at all.

Despite comment reports "since 3.6.0", the method update() has been there for almost a decade, so I couldn't find out when it was introduced and why.

avatar demis-palma demis-palma - open - 14 Apr 2017
avatar demis-palma demis-palma - change - 14 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Apr 2017
Category Libraries
avatar zero-24
zero-24 - comment - 14 Apr 2017

The since tags are changed here: #10196 for the reason that 3.5.2 was droped over 3.6.0

And the method itself comes from here: 8880ed9

avatar zero-24
zero-24 - comment - 14 Apr 2017

Even if it is not used (need to be checked) as this is a public method that we IIRC can't remove it in 3.x.

avatar zero-24
zero-24 - comment - 14 Apr 2017

This PR: https://github.com/joomla/joomla-cms/pull/9612/files moved it and changed accidentally the since tag from 11.1 to 3.5.2 and later was moved to 3.6.0. So it looks like it is there from the initial commit. demis-palma@b054608

avatar zero-24
zero-24 - comment - 14 Apr 2017

Correct. Just found the same. ?

avatar demis-palma demis-palma - change - 14 Apr 2017
The description was changed
avatar demis-palma demis-palma - edited - 14 Apr 2017
avatar mbabker
mbabker - comment - 14 Apr 2017

If this is truly dead code we can merge this PR for 4.0. We just need a PR deprecating the method first.

avatar zero-24
zero-24 - comment - 15 Apr 2017

@demis-palma can you send the removal PR against 4.0-dev than?

avatar wilsonge wilsonge - change - 15 Apr 2017
Labels Added: ?
avatar wilsonge wilsonge - change - 15 Apr 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-15 15:51:46
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 15 Apr 2017
avatar wilsonge wilsonge - merge - 15 Apr 2017
avatar wilsonge
wilsonge - comment - 15 Apr 2017

Changed this to point to 4.0 in GitHub and fixed the conflict. Merged into 4.0

Add a Comment

Login with GitHub to post a comment