summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-01-21 12:57:59 +0100
committerMichael Meeks <michael.meeks@collabora.com>2018-10-30 17:00:50 +0000
commit86edf1e3d1f5b98997b6a764da24923f1d74746b (patch)
treea54d8e364bdd4d1410f20dd8d2505c1e6c3a918c /desktop
parent1bea09c744bc1c58b05147b52e29ca80dc46688f (diff)
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 Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 70f415b58498..63893a4ee976 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3756,7 +3756,6 @@ static bool initialize_uno(const OUString& aAppProgramURL)
return true;
}
-#ifndef IOS
static void lo_startmain(void*)
{
osl_setThreadName("lo_startmain");
@@ -3770,7 +3769,6 @@ static void lo_startmain(void*)
Application::ReleaseSolarMutex();
}
-#endif
static bool bInitialized = false;
@@ -4022,14 +4020,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";
@@ -4095,16 +4085,12 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
desktop::Desktop::CreateTemporaryDirectory();
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");
}