Cleanup KSudoku::updateShapesList() to remove manual path fiddling.
ClosedPublic

Authored by ouwerkerk on Apr 30 2017, 3:10 PM.

Details

Summary

This change resolves Phabricator/Maniphest task T5977.

Test Plan

Compiled & tested I could still generate custom game variant puzzles: Mathdoku 4x4, Killer 9x9.

Also, to confirm the duplicate filtering is redundant I ran ksudoku with a deliberately messed up XDG_DATA_DIRS environment variable:

XDG_DATA_DIRS="$XDG_DATA_DIRS:$PWD/kde-5/share;$PWD/kde-5/share;$PWD/kde-5/share" ./kde-5/bin/ksudoku

(Which still lists each game variant type only once, meaning the filtering was in fact redundant.)

Diff Detail

Repository
R417 KSudoku
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ouwerkerk created this revision.Apr 30 2017, 3:10 PM
Restricted Application added a reviewer: KDE Games. · View Herald TranscriptApr 30 2017, 3:10 PM
Restricted Application added a subscriber: KDE Games. · View Herald Transcript

I think it's safe to skip the contains() check entirely, and I'm tempted to remove it. Did I overlook something?

ouwerkerk updated this revision to Diff 14028.Apr 30 2017, 3:18 PM

Removed the contains() check, which I believe to be entirely redundant.

ouwerkerk edited the test plan for this revision. (Show Details)Apr 30 2017, 3:33 PM
ouwerkerk edited the test plan for this revision. (Show Details)
ltoscano accepted this revision.Apr 30 2017, 3:44 PM
ltoscano added a subscriber: ltoscano.

Working as expected.

This revision is now accepted and ready to land.Apr 30 2017, 3:44 PM
This revision was automatically updated to reflect the committed changes.