[Libreoffice-commits] core.git: framework/source
Stephan Bergmann
sbergman at redhat.com
Tue Apr 5 14:49:45 UTC 2016
framework/source/services/autorecovery.cxx | 22 ----------------------
1 file changed, 22 deletions(-)
New commits:
commit 062d0b1e36217a88ea3a727a14df68bd81f6092e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Apr 5 16:49:11 2016 +0200
m_dbg_bMakeItFaster is always false
Change-Id: I7ee117fcc5538ab9bc92cd30fd0f61e52a5a93bd
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 90ac85d..427203a 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -433,16 +433,6 @@ private:
sal_Int32 m_nMinSpaceDocSave;
sal_Int32 m_nMinSpaceConfigSave;
- /** @short special debug option to make testing faster.
-
- @descr We don't interpret the timer unit as [min] ...
- we use [ms] instead of that. Further we don't
- wait 10 s for user idle ...
- */
- #if OSL_DEBUG_LEVEL > 0
- bool m_dbg_bMakeItFaster;
- #endif
-
// interface
public:
@@ -1265,10 +1255,6 @@ AutoRecovery::AutoRecovery(const css::uno::Reference< css::uno::XComponentContex
, m_nDocCacheLock (0 )
, m_nMinSpaceDocSave (MIN_DISCSPACE_DOCSAVE )
, m_nMinSpaceConfigSave (MIN_DISCSPACE_CONFIGSAVE )
-
- #if OSL_DEBUG_LEVEL > 0
- , m_dbg_bMakeItFaster (false )
- #endif
{
}
@@ -2291,18 +2277,10 @@ void AutoRecovery::implts_updateTimer()
if (m_eTimerType == AutoRecovery::E_NORMAL_AUTOSAVE_INTERVALL)
{
nMilliSeconds = (m_nAutoSaveTimeIntervall*60000); // [min] => 60.000 ms
- #if OSL_DEBUG_LEVEL > 0
- if (m_dbg_bMakeItFaster)
- nMilliSeconds = m_nAutoSaveTimeIntervall; // [ms]
- #endif
}
else if (m_eTimerType == AutoRecovery::E_POLL_FOR_USER_IDLE)
{
nMilliSeconds = MIN_TIME_FOR_USER_IDLE;
- #if OSL_DEBUG_LEVEL > 0
- if (m_dbg_bMakeItFaster)
- nMilliSeconds = 300; // let us some time, to finish this method .-)
- #endif
}
else if (m_eTimerType == AutoRecovery::E_POLL_TILL_AUTOSAVE_IS_ALLOWED)
nMilliSeconds = 300; // there is a minimum time frame, where the user can lose some key input data!
More information about the Libreoffice-commits
mailing list