Remove dead code (src/naturalqueryparser/) in baloo-wdgets
ClosedPublic

Authored by lueck on Mar 20 2018, 9:17 PM.

Details

Summary

dead code excluded from build 3 years ago with
https://cgit.kde.org/baloo-widgets.git/commit/src/CMakeLists.txt?id=99336acb306ec5cc2faaff376c10f6a9292fdd09
Commit log:
Do not build the NaturalQueryParser
It relies on Baloo::Term which Baloo is no longer exporting

Do not bother translators with obsolete translations since 04-2015

Test Plan

builds

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lueck created this revision.Mar 20 2018, 9:17 PM
Restricted Application added a project: Baloo. · View Herald TranscriptMar 20 2018, 9:17 PM
lueck requested review of this revision.Mar 20 2018, 9:17 PM

+1 from me.
As I'm not confident enough wrt cmake/exports and stuff someone else has to accept this.

rkflx added a subscriber: rkflx.Mar 21 2018, 10:46 PM

+1 from me.
As I'm not confident enough wrt cmake/exports and stuff someone else has to accept this.

It's not that complicated, you can try to understand it: Look at src/CMakeLists.txt, where a bunch of files is listed for compilation. However, note that all lines which are to be removed start with #, i.e. they were commented out before and thus nothing will actually change in the final build.

Next, check that what is being removed from this file is also reflected in deletions of the affected files. The src/naturalqueryparser directory seems to be removed completely, which is fine. However, see inline comment for the rest.


Too bad this has to go. At least let me add a link here to the project with some screenshots, because the idea was really nice after all: http://steckdenis.be/post-2013-09-25-the-end-of-the-google-summer-of-code.html

(And this idea has some relevance to the recent discussions about handling variable picking in Dolphin/Spectacle/Gwenview, not to mention Mycroft…)

src/CMakeLists.txt
19–21

@lueck Should those files (as well as the corresponding header files) also be removed?

lueck updated this revision to Diff 30186.Mar 22 2018, 6:07 AM

delete more files commented from build as pointed out by Henrik

michaelh requested changes to this revision.Mar 30 2018, 11:40 AM

baloo-widgets/test/querybuilderapp.cpp can also be removed and
baloo-widgets/test/CMakeLists.txt can be changed.

This revision now requires changes to proceed.Mar 30 2018, 11:40 AM
lueck updated this revision to Diff 30918.Mar 30 2018, 12:00 PM

delete more obsolete naturalqueryparser files in subdir test as pointed out by Michael, thanks

michaelh accepted this revision.Mar 30 2018, 12:03 PM

Frühjahrsputz accepted :)

This revision is now accepted and ready to land.Mar 30 2018, 12:03 PM
This revision was automatically updated to reflect the committed changes.