? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
28 Jun 2020

Summary of Changes

removing dead code, the resultant $items is not used and the method call adds nothing but overhead to the run

Testing Instructions

Code review only needed

All that I removed was the following which someone has already annotated for removal

// @TODO: $items is not used. Remove this line?		
$items = $categoryModel->getItems();

Actual result BEFORE applying this Pull Request

Newsfeeds work

Expected result AFTER applying this Pull Request

Newsfeeds still work

Documentation Changes Required

None

Closes #29806 which was based on 4.0-dev, this is a rework on staging although the files are different Im hoping @wilsonge merges these things up?

avatar PhilETaylor PhilETaylor - open - 28 Jun 2020
avatar PhilETaylor PhilETaylor - change - 28 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2020
Category Front End com_newsfeeds
avatar PhilETaylor PhilETaylor - change - 28 Jun 2020
Title
$items is not used
Remove $items that is not used
avatar PhilETaylor PhilETaylor - edited - 28 Jun 2020
avatar ChristineWk ChristineWk - test_item - 28 Jun 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 28 Jun 2020

I have tested this item successfully on 0627aab


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29807.

avatar jwaisner jwaisner - test_item - 28 Jun 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 28 Jun 2020

I have tested this item successfully on 0627aab


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29807.

avatar jwaisner jwaisner - change - 28 Jun 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 28 Jun 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29807.

avatar HLeithner
HLeithner - comment - 28 Jun 2020

And why didn't you remove the getModel part completely?

avatar PhilETaylor
PhilETaylor - comment - 28 Jun 2020

I went for the "light touch" approach ;-) I dont want to break anything haha and this was clearly wrong and easy to remove.

avatar PhilETaylor
PhilETaylor - comment - 28 Jun 2020

Actually, @HLeithner Im not following what you mean.

avatar HLeithner
HLeithner - comment - 28 Jun 2020

haha and now we have a new unused variable ;-)

At least I can't see that $categoryModel is used in the function maybe I'm wrong.

avatar PhilETaylor PhilETaylor - change - 28 Jun 2020
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 28 Jun 2020

@HLeithner I have tested and you are right - the whole block can be removed.

@jwaisner @ChristineWk this needs testing again before RTC thanks :)

avatar ChristineWk ChristineWk - test_item - 28 Jun 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 28 Jun 2020

I have tested this item successfully on 76967e7

blank now :-)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29807.

avatar toivo toivo - test_item - 29 Jun 2020 - Tested successfully
avatar toivo
toivo - comment - 29 Jun 2020

I have tested this item successfully on 76967e7

Tested successfully in 3.9.20-dev Nightly Build of 29 June.
Environment: Wampserver 3.2.2 Apache 2.4.43 MySQL 8.0.20 PHP 7.4.7.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29807.

avatar PhilETaylor
PhilETaylor - comment - 29 Jun 2020

continuous-integration/appveyor/pr — AppVeyor build failed

Not related to this PR change :)

avatar wilsonge wilsonge - change - 4 Aug 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-08-04 22:29:50
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Aug 2020
avatar wilsonge wilsonge - merge - 4 Aug 2020
avatar wilsonge
wilsonge - comment - 4 Aug 2020

Thanks!

Add a Comment

Login with GitHub to post a comment