desktop/source/lib/init.cxx |   14 --------------
 1 file changed, 14 deletions(-)

New commits:
commit 57fd33408a5a3ae4d2a9ff68ee5513ff1192b6ad
Author: jan Iversen <[email protected]>
Date:   Sun Jan 21 12:57:59 2018 +0100

    iOS, removed iOS special handling in init()
    
    Removed the need for the (limited) init() used earlier by iOS.
    
    Due to problems solved below init() it is now posible to use
    the standard init !!
    
    init.cxx still have some special handling of paintTile, which we should try
    to eliminate
    
    Change-Id: I42234aea8ac6b8dfcf8c3c88b386b4d4a97bba74

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 468a145f31c6..b3631ba3ade7 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3504,7 +3504,6 @@ static bool initialize_uno(const OUString& aAppProgramURL)
     return true;
 }
 
-#ifndef IOS
 static void lo_startmain(void*)
 {
     osl_setThreadName("lo_startmain");
@@ -3516,7 +3515,6 @@ static void lo_startmain(void*)
 
     Application::ReleaseSolarMutex();
 }
-#endif
 
 static bool bInitialized = false;
 
@@ -3651,14 +3649,6 @@ static int lo_initialize(LibreOfficeKit* pThis, const 
char* pAppPath, const char
             // CommandLineArgs):
             desktop::Desktop::GetCommandLineArgs().setHeadless();
 
-#ifdef IOS
-            // mpDefInst need to be initialized, which only happens in 
InitVCL(),
-            // there might be more elegant ways to get InitVCL() called, but
-            // this one works :-)
-            InitVCL();
-            SfxApplication::GetOrCreate();
-#endif
-
             if (eStage == PRE_INIT)
             {
                 std::cerr << "Init vcl\n";
@@ -3714,16 +3704,12 @@ static int lo_initialize(LibreOfficeKit* pThis, const 
char* pAppPath, const char
         if (eStage != PRE_INIT)
         {
             SAL_INFO("lok", "Enabling RequestHandler");
-#ifdef IOS
-            RequestHandler::Enable(true);
-#else
             RequestHandler::Enable(false);
             SAL_INFO("lok", "Starting soffice_main");
             RequestHandler::SetReady(false);
             pLib->maThread = osl_createThread(lo_startmain, nullptr);
             SAL_INFO("lok", "Waiting for RequestHandler");
             RequestHandler::WaitForReady();
-#endif
             SAL_INFO("lok", "RequestHandler ready -- continuing");
         }
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to