This line needs to stay in. It's specifically staying there as a warning, and is referenced by the line above. It took me some time of looking through Qwt's docs to figure out that this one series shouldn't be deleted, whereas the others should be.