[Libreoffice-commits] online.git: loolwsd/ChildProcessSession.cpp
Miklos Vajna
vmiklos at collabora.co.uk
Wed May 4 11:38:34 UTC 2016
loolwsd/ChildProcessSession.cpp | 26 --------------------------
1 file changed, 26 deletions(-)
New commits:
commit 29f11ccab9d465cc4520ab6c07c03c9fb0e32243
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed May 4 13:38:04 2016 +0200
loolwsd: fix -Werror,-Wunused-function
Change-Id: Ifc58722337bdc62952082ddfb11ce90cd6fc21c2
diff --git a/loolwsd/ChildProcessSession.cpp b/loolwsd/ChildProcessSession.cpp
index 6843b24..42dc2a6 100644
--- a/loolwsd/ChildProcessSession.cpp
+++ b/loolwsd/ChildProcessSession.cpp
@@ -695,32 +695,6 @@ bool ChildProcessSession::getPartPageRectangles(const char* /*buffer*/, int /*le
return true;
}
-namespace {
- inline bool delayAndRewritePart(int &part)
- {
-#if ENABLE_DEBUG
- static bool delayEnv = getenv("DELAY_TILES");
- if (delayEnv)
- return true;
-
- if (part == 42)
- {
- part = 0;
- return true;
- }
-#endif
- (void)part;
- return false;
- }
- inline void delay()
- {
-#if ENABLE_DEBUG
- Log::debug("Sleeping for one second");
- std::this_thread::sleep_for(std::chrono::seconds(1));
-#endif
- }
-}
-
bool ChildProcessSession::clientZoom(const char* /*buffer*/, int /*length*/, StringTokenizer& tokens)
{
int tilePixelWidth, tilePixelHeight, tileTwipWidth, tileTwipHeight;
More information about the Libreoffice-commits
mailing list