diff --git a/effects/boxswitch/boxswitch.cpp b/effects/boxswitch/boxswitch.cpp
index 0963c8d88b..fc8f98b097 100644
--- a/effects/boxswitch/boxswitch.cpp
+++ b/effects/boxswitch/boxswitch.cpp
@@ -29,10 +29,6 @@ along with this program. If not, see .
#include
#include
-#ifdef KWIN_HAVE_OPENGL_COMPOSITING
-#include
-#endif
-
namespace KWin
{