remove pointless ifdef
Summary:
the cast may not be necessary with <5.15 it will build all the same
since we are using legacy API here
Test Plan: build
Reviewers: mlaurent
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D27066