Port foreach to range-for; clean up old commented out code
The removed code has been commented out since around the split from kde-workspace, circa 2014.
The removed code has been commented out since around the split from kde-workspace, circa 2014.