diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-01-27 19:19:43 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-01-31 17:45:29 +0100 |
commit | be71e2b860e8ec5debc60bdcbda3e3fa5f8cd528 (patch) | |
tree | 2dc4716c1cb6be6dcba464b507f3fefa9af0ece7 /desktop/source/lib | |
parent | fedbbc5e3f22baab26adf3e5f921f8cebe7a4bf9 (diff) |
Revert "Lok: support for batch API calls"
This was for the moment removed from the online.git, so let's disable the API
bits too before it shows this is really necessary. Reverts also:
Revert "Lok: unittest batch API"
Change-Id: I7bf3fe62d1e73b6f233992d51f587868a78f4bec
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 2dcd59f90495..57067fa479a8 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -537,8 +537,6 @@ static unsigned char* doc_renderFont(LibreOfficeKitDocument* pThis, int* pFontWidth, int* pFontHeight); static char* doc_getPartHash(LibreOfficeKitDocument* pThis, int nPart); -static void doc_beginBatch(LibreOfficeKitDocument* pThis); -static void doc_endBatch(LibreOfficeKitDocument* pThis); LibLODocument_Impl::LibLODocument_Impl(const uno::Reference <css::lang::XComponent> &xComponent) : mxComponent(xComponent) @@ -585,8 +583,6 @@ LibLODocument_Impl::LibLODocument_Impl(const uno::Reference <css::lang::XCompone m_pDocumentClass->renderFont = doc_renderFont; m_pDocumentClass->getPartHash = doc_getPartHash; - m_pDocumentClass->beginBatch = doc_beginBatch; - m_pDocumentClass->endBatch = doc_endBatch; gDocumentClass = m_pDocumentClass; } @@ -2734,28 +2730,6 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/, return nullptr; } -static void doc_beginBatch(LibreOfficeKitDocument* pThis) -{ - SolarMutexGuard aGuard; - - LibLODocument_Impl* pDocument = static_cast<LibLODocument_Impl*>(pThis); - for (const auto& pair : pDocument->mpCallbackFlushHandlers) - { - pair.second->setEventLatch(true); - } -} - -static void doc_endBatch(LibreOfficeKitDocument* pThis) -{ - SolarMutexGuard aGuard; - - LibLODocument_Impl* pDocument = static_cast<LibLODocument_Impl*>(pThis); - for (const auto& pair : pDocument->mpCallbackFlushHandlers) - { - pair.second->setEventLatch(false); - } -} - static char* lo_getError (LibreOfficeKit *pThis) { SolarMutexGuard aGuard; |