diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-05-06 00:34:58 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-05-26 00:51:04 +0200 |
commit | 20c235df449f341774441f3bc5f567b839b75536 (patch) | |
tree | 1e1700ae1283180a25dbf6df951a07d54ef1fa8b /sw/source/uibase/wrtsh | |
parent | fe6c5adfcf25654d4494da24ad8412867888d3de (diff) |
remove unconditionally dead code
Change-Id: Idf092ad98ac029eda11fa9b925cf7a99bf3c5167
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r-- | sw/source/uibase/wrtsh/navmgr.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sw/source/uibase/wrtsh/navmgr.cxx b/sw/source/uibase/wrtsh/navmgr.cxx index ca06f65c6607..740e8b71e516 100644 --- a/sw/source/uibase/wrtsh/navmgr.cxx +++ b/sw/source/uibase/wrtsh/navmgr.cxx @@ -18,13 +18,6 @@ #include <com/sun/star/frame/XLayoutManager.hpp> -/** - * If SMART is defined, the navigation history has recency with temporal ordering enhancement, - * as described on http://zing.ncsl.nist.gov/hfweb/proceedings/greenberg/ - */ - -#define SMART 1 - // This method positions the cursor to the position rPos. void SwNavigationMgr::GotoSwPosition(const SwPosition &rPos) { @@ -154,7 +147,8 @@ bool SwNavigationMgr::addEntry(const SwPosition& rPos) { bool bRet = false; // return value of the function. // Indicates whether the index should be decremented before // jumping back or not -#if SMART + // The navigation history has recency with temporal ordering enhancement, + // as described on http://zing.ncsl.nist.gov/hfweb/proceedings/greenberg/ // If any forward history exists, twist the tail of the // list from the current position to the end if (bForwardWasEnabled) { @@ -184,12 +178,6 @@ bool SwNavigationMgr::addEntry(const SwPosition& rPos) { if (m_entries.size() == 1 && *m_entries.back()->GetPoint() == rPos) bRet = false; } -#else - m_entries.erase(m_entries.begin() + m_nCurrent, m_entries.end()); - SwUnoCrsr *const pCursor = m_rMyShell.GetDoc()->CreateUnoCrsr(rPos); - m_entries.push_back(::boost::shared_ptr<SwUnoCrsr>(pCursor)); - bRet = true; -#endif m_nCurrent = m_entries.size(); // Refresh buttons |