diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 09:11:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:50 +0000 |
commit | 0d3082dbf2e87bed462246307a13e206f7617081 (patch) | |
tree | 372b4a879b45e6a9e85ff42f4275a8e925c3162d /sw | |
parent | 2efd433478cf4820b308b20cf42595345e023af2 (diff) |
callcatcher: update unused code
Change-Id: Iaaad9302ef8edb47fa95ce8ca608b6f36449521b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/expfld.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/fields/fldlst.cxx | 30 |
2 files changed, 0 insertions, 32 deletions
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx index c9fbebd91321..f2e3eba573e7 100644 --- a/sw/inc/expfld.hxx +++ b/sw/inc/expfld.hxx @@ -375,8 +375,6 @@ public: Compare TmpLst with current fields. */ sal_uInt16 BuildSortLst(); - void RemoveUnselectedFlds(); - private: SwEditShell* pSh; _SetGetExpFlds* pSrtLst; diff --git a/sw/source/core/fields/fldlst.cxx b/sw/source/core/fields/fldlst.cxx index fae983f1d4f2..11857f798aaa 100644 --- a/sw/source/core/fields/fldlst.cxx +++ b/sw/source/core/fields/fldlst.cxx @@ -169,34 +169,4 @@ sal_uInt16 SwInputFieldList::BuildSortLst() return pSrtLst->size(); } -/// remove all fields outside of any selections from list -void SwInputFieldList::RemoveUnselectedFlds() -{ - _SetGetExpFlds* pNewLst = new _SetGetExpFlds(); - - FOREACHPAM_START(pSh->GetCrsr()) - { - for (sal_uInt16 i = 0; i < Count();) - { - _SetGetExpFld* pFld = (*pSrtLst)[i]; - SwPosition aPos(*PCURCRSR->GetPoint()); - - pFld->GetPos( aPos ); - - if (aPos >= *PCURCRSR->Start() && aPos < *PCURCRSR->End()) - { - // field in selection - pNewLst->insert( (*pSrtLst)[i] ); - pSrtLst->erase(i); - } - else - i++; - } - } - FOREACHPAM_END() - - delete pSrtLst; - pSrtLst = pNewLst; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |