diff --git a/scripting/scriptedeffect.cpp b/scripting/scriptedeffect.cpp index d34340cef2..604b74db7d 100644 --- a/scripting/scriptedeffect.cpp +++ b/scripting/scriptedeffect.cpp @@ -50,7 +50,6 @@ QScriptValue kwinEffectScriptPrint(QScriptContext *context, QScriptEngine *engin QScriptValue kwinEffectScriptAnimationTime(QScriptContext *context, QScriptEngine *engine) { - ScriptedEffect *script = qobject_cast(context->callee().data().toQObject()); if (context->argumentCount() != 1) { return engine->undefinedValue(); }