From 6361a9398584defe9ab8db1e3383e02912e3f24c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Feb 2024 11:31:12 +0200 Subject: merge desktop_detector library into vcl library Noting that the main feature of using a separate library - avoiding linking against SM and ICE - is no longer a thing, since we have not used those in some time. Change-Id: I9ecd6758e97f0fa19b224346aa577a04b46793b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163638 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/app/salplug.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/app/salplug.cxx b/vcl/source/app/salplug.cxx index 026867e99bf2..feb31dea77d4 100644 --- a/vcl/source/app/salplug.cxx +++ b/vcl/source/app/salplug.cxx @@ -168,32 +168,11 @@ SalInstance* tryInstance( const OUString& rModuleBase, bool bForce = false ) #endif // !STATIC_SAL_INSTANCE #if UNIX_DESKTOP_DETECT -#ifndef DISABLE_DYNLOADING -extern "C" typedef DesktopType Fn_get_desktop_environment(); -#else -extern "C" DesktopType get_desktop_environment(); -#endif DesktopType lcl_get_desktop_environment() { DesktopType ret = DESKTOP_UNKNOWN; -#ifdef DISABLE_DYNLOADING ret = get_desktop_environment(); -#else - OUString aModule(DESKTOP_DETECTOR_DLL_NAME); - oslModule aMod = osl_loadModuleRelative( - reinterpret_cast< oslGenericFunction >( &tryInstance ), aModule.pData, - SAL_LOADMODULE_DEFAULT ); - if( aMod ) - { - Fn_get_desktop_environment * pSym - = reinterpret_cast( - osl_getAsciiFunctionSymbol(aMod, "get_desktop_environment")); - if( pSym ) - ret = pSym(); - } - osl_unloadModule( aMod ); -#endif return ret; } -- cgit