diff --git a/core/platform/linux/Application-linux.cpp b/core/platform/linux/Application-linux.cpp index ca5277dd268b..221a627abe82 100644 --- a/core/platform/linux/Application-linux.cpp +++ b/core/platform/linux/Application-linux.cpp @@ -132,11 +132,13 @@ Application* Application::getInstance() return sm_pSharedApplication; } +#ifndef AX_CORE_PROFILE // @deprecated Use getInstance() instead Application* Application::sharedApplication() { return Application::getInstance(); } +#endif const char* Application::getCurrentLanguageCode() { diff --git a/core/platform/wasm/Application-wasm.cpp b/core/platform/wasm/Application-wasm.cpp index 8c763a36c1b9..8aef66ddb77e 100644 --- a/core/platform/wasm/Application-wasm.cpp +++ b/core/platform/wasm/Application-wasm.cpp @@ -211,6 +211,7 @@ void Application::setAnimationInterval(float interval) s_animationInterval = static_cast(interval * NANOSECONDSPERSECOND); } +#ifndef AX_CORE_PROFILE void Application::setResourceRootPath(const std::string& rootResDir) { _resourceRootPath = rootResDir; @@ -228,6 +229,7 @@ const std::string& Application::getResourceRootPath() { return _resourceRootPath; } +#endif Application::Platform Application::getTargetPlatform() { @@ -255,11 +257,13 @@ Application* Application::getInstance() return sm_pSharedApplication; } +#ifndef AX_CORE_PROFILE // @deprecated Use getInstance() instead Application* Application::sharedApplication() { return Application::getInstance(); } +#endif const char* Application::getCurrentLanguageCode() {