Toggle comment functionality introduced in https://phabricator.kde.org/D9430
fails when one of the selected lines is empty. Line count ends up off by one. The null line is not commented, and an extra line beyond the selection is toggled. This patch tests for a null line and comments it if found
This diff also removes some unused imports and a couple of lines of unused code.
This diff assumes the following diffs have been applied:
https://phabricator.kde.org/D9419
https://phabricator.kde.org/D9430
https://phabricator.kde.org/D9445