From 60218cd8dd01c97776e58728a0ea4e9b949e50f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 8 Feb 2021 14:46:05 +0800 Subject: [PATCH] remove test code --- doric-Qt/doric/engine/DoricNativeJSE.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/doric-Qt/doric/engine/DoricNativeJSE.cpp b/doric-Qt/doric/engine/DoricNativeJSE.cpp index 9724b457..7e6721cc 100644 --- a/doric-Qt/doric/engine/DoricNativeJSE.cpp +++ b/doric-Qt/doric/engine/DoricNativeJSE.cpp @@ -37,9 +37,6 @@ void DoricNativeJSE::injectGlobalJSFunction(QString name, QObject *function, QJSValue DoricNativeJSE::invokeObject(QString objectName, QString functionName, QVariantList arguments) { - QString script = DoricUtils::readAssetFile("/test", "test.js"); - mJSEngine.evaluate(script); - QJSValue object = mJSEngine.evaluate(objectName); QJSValue function = object.property(functionName);