From ee438031e6c0a1765cd607486d3ec65749d1dd62 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Sep 2020 12:57:07 +0200 Subject: loplugin:unusedmethods Change-Id: I523a42b721056f17a04870229834b0f2db00ff39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101836 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/unusedmethods.results | 98 ++++++++--------------------- include/vcl/edit.hxx | 4 -- include/xmloff/txtimp.hxx | 2 - sd/source/ui/func/fusearch.cxx | 5 -- sd/source/ui/inc/fusearch.hxx | 1 - vcl/source/control/edit.cxx | 8 --- vcl/source/control/imivctl.hxx | 3 - vcl/source/control/imivctl1.cxx | 32 ---------- xmloff/source/text/txtimp.cxx | 12 ---- 9 files changed, 27 insertions(+), 138 deletions(-) diff --git a/compilerplugins/clang/unusedmethods.results b/compilerplugins/clang/unusedmethods.results index 1f87cf481176..e60976544df9 100644 --- a/compilerplugins/clang/unusedmethods.results +++ b/compilerplugins/clang/unusedmethods.results @@ -72,8 +72,6 @@ connectivity/source/drivers/firebird/Util.hxx:72 short connectivity::firebird::ColumnTypeInfo::getSubType() const connectivity/source/drivers/firebird/Util.hxx:74 const class rtl::OUString & connectivity::firebird::ColumnTypeInfo::getCharacterSet() const -connectivity/source/drivers/mork/mork_helper.cxx:37 - int main(int,char **) connectivity/source/drivers/mysqlc/mysqlc_connection.hxx:176 class rtl::OUString connectivity::mysqlc::OConnection::transFormPreparedStatement(const class rtl::OUString &) connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.hxx:94 @@ -500,14 +498,14 @@ include/comphelper/sequence.hxx:200 Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[_Num]) include/comphelper/sequence.hxx:200 Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[S]) +include/comphelper/sequence.hxx:200 + Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[_Bound]) include/comphelper/sequence.hxx:200 Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[N]) include/comphelper/sequence.hxx:200 Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[_Nm]) include/comphelper/sequence.hxx:200 Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[SrcSize]) -include/comphelper/sequence.hxx:200 - Sequence comphelper::containerToSequence(type-parameter-?-? const (&)[_Bound]) include/comphelper/servicedecl.hxx:108 comphelper::service_decl::ServiceDecl::ServiceDecl(const type-parameter-?-? &,const char *,const char *) include/comphelper/unique_disposing_ptr.hxx:46 @@ -676,10 +674,6 @@ include/svx/ClassificationField.hxx:47 const class rtl::OUString & svx::ClassificationResult::getDisplayText() const include/svx/ClassificationField.hxx:52 _Bool svx::ClassificationResult::operator==(const class svx::ClassificationResult &) const -include/svx/dbaexchange.hxx:170 - svx::ODataAccessObjectTransferable::ODataAccessObjectTransferable(const class rtl::OUString &,const int,const class rtl::OUString &,const class com::sun::star::uno::Reference &) -include/svx/dbaexchange.hxx:192 - svx::ODataAccessObjectTransferable::ODataAccessObjectTransferable(const class rtl::OUString &,const int,const class rtl::OUString &) include/svx/DiagramDataInterface.hxx:33 class rtl::OUString DiagramDataInterface::getString() const include/svx/dlgctrl.hxx:244 @@ -692,7 +686,7 @@ include/svx/framelink.hxx:170 _Bool svx::frame::operator>(const class svx::frame::Style &,const class svx::frame::Style &) include/svx/gallery1.hxx:58 const class std::unique_ptr > & GalleryThemeEntry::getGalleryBinaryEngineEntry() const -include/svx/gallerybinaryengine.hxx:63 +include/svx/gallerybinaryengine.hxx:69 const class INetURLObject & GalleryBinaryEngine::GetStrURL() const include/svx/langbox.hxx:94 void SvxLanguageBox::show() @@ -840,6 +834,8 @@ include/vcl/customweld.hxx:142 void weld::CustomWeld::queue_draw_area(int,int,int,int) include/vcl/customweld.hxx:157 void weld::CustomWeld::set_visible(_Bool) +include/vcl/edit.hxx:240 + class Size Edit::GetMinimumEditSize() include/vcl/errcode.hxx:86 _Bool ErrCode::operator<(const class ErrCode &) const include/vcl/errcode.hxx:87 @@ -868,7 +864,7 @@ include/vcl/ITiledRenderable.hxx:214 enum PointerStyle vcl::ITiledRenderable::getPointer() include/vcl/lok.hxx:22 void vcl::lok::unregisterPollCallbacks() -include/vcl/NotebookBarAddonsMerger.hxx:63 +include/vcl/NotebookBarAddonsMerger.hxx:55 NotebookBarAddonsMerger::NotebookBarAddonsMerger() include/vcl/opengl/OpenGLHelper.hxx:67 void OpenGLHelper::renderToFile(long,long,const class rtl::OUString &) @@ -916,38 +912,12 @@ include/vcl/TaskStopwatch.hxx:118 void TaskStopwatch::setTimeSlice(unsigned int) include/vcl/textrectinfo.hxx:45 _Bool TextRectInfo::operator!=(const class TextRectInfo &) const -include/vcl/toolkit/ivctrl.hxx:120 - void SvxIconChoiceCtrlEntry::SetUserData(void *) -include/vcl/toolkit/ivctrl.hxx:121 - void * SvxIconChoiceCtrlEntry::GetUserData() -include/vcl/toolkit/ivctrl.hxx:220 - void SvtIconChoiceCtrl::SetChoiceWithCursor() -include/vcl/toolkit/ivctrl.hxx:226 - const class Link & SvtIconChoiceCtrl::GetClickHdl() const -include/vcl/toolkit/ivctrl.hxx:246 - void SvtIconChoiceCtrl::CreateAutoMnemonics(class MnemonicGenerator &) -include/vcl/toolkit/ivctrl.hxx:258 - void SvtIconChoiceCtrl::InvalidateEntry(class SvxIconChoiceCtrlEntry *) -include/vcl/toolkit/ivctrl.hxx:261 - class SvxIconChoiceCtrlEntry * SvtIconChoiceCtrl::GetEntry(const class Point &) const -include/vcl/toolkit/ivctrl.hxx:270 - void SvtIconChoiceCtrl::SetSelectionMode(enum SelectionMode) include/vcl/toolkit/longcurr.hxx:47 class BigInt LongCurrencyFormatter::GetValue() const include/vcl/toolkit/treelist.hxx:170 const class SvTreeListEntry * SvTreeList::GetParent(const class SvTreeListEntry *) const include/vcl/toolkit/treelistbox.hxx:369 void SvTreeListBox::RemoveSelection() -include/vcl/toolkit/treelistbox.hxx:631 - void SvTreeListBox::SetCursor(class SvTreeListEntry *) -include/vcl/toolkit/treelistbox.hxx:670 - class VclPtr SvTreeListBox::CreateContextMenu() -include/vcl/toolkit/vclmedit.hxx:89 - void VclMultiLineEdit::LinkStubImpUpdateDataHdl(void *,class Timer *) -include/vcl/toolkit/vclmedit.hxx:89 - void VclMultiLineEdit::ImpUpdateDataHdl(class Timer *) -include/vcl/toolkit/vclmedit.hxx:146 - void VclMultiLineEdit::SetRightToLeft(_Bool) include/vcl/txtattr.hxx:56 _Bool TextAttrib::operator!=(const class TextAttrib &) const include/vcl/uitest/uiobject.hxx:281 @@ -1048,20 +1018,8 @@ include/xmloff/txtimp.hxx:386 class XMLPropertyBackpatcher & XMLTextImportHelper::GetFootnoteBP() include/xmloff/txtimp.hxx:387 class XMLPropertyBackpatcher & XMLTextImportHelper::GetSequenceIdBP() -include/xmloff/txtimp.hxx:421 - const class SvXMLTokenMap & XMLTextImportHelper::GetTextMasterPageElemTokenMap() -include/xmloff/txtimp.hxx:572 +include/xmloff/txtimp.hxx:571 class rtl::OUString XMLTextImportHelper::FindActiveBookmarkName() -include/xmloff/xmlimppr.hxx:93 - void SvXMLImportPropertyMapper::importXML(class std::__debug::vector > &,const class com::sun::star::uno::Reference &,const class SvXMLUnitConverter &,const class SvXMLNamespaceMap &,unsigned int,int,int) const -include/xmloff/xmlnumfi.hxx:92 - const class SvXMLTokenMap & SvXMLNumFmtHelper::GetStylesElemTokenMap() -include/xmloff/xmlnumfi.hxx:173 - class SvXMLNumImpData * SvXMLNumFormatContext::GetData() const -include/xmloff/xmlnumi.hxx:53 - SvxXMLListStyleContext::SvxXMLListStyleContext(class SvXMLImport &,unsigned short,const class rtl::OUString &,const class com::sun::star::uno::Reference &,_Bool) -include/xmloff/xmlstyle.hxx:179 - const class SvXMLTokenMap & SvXMLStylesContext::GetStyleStylesElemTokenMap() include/xmlreader/pad.hxx:38 void xmlreader::Pad::add(char const (&)[size_]) include/xmlreader/span.hxx:45 @@ -1318,6 +1276,8 @@ sd/source/filter/ppt/pptinanimations.hxx:108 void ppt::AnimationImporter::dump(const char *,long) sd/source/ui/inc/filedlg.hxx:55 _Bool SdOpenSoundFileDialog::IsInsertAsLinkSelected() const +sd/source/ui/inc/fusearch.hxx:34 + class rtl::Reference sd::FuSearch::Create(class sd::ViewShell *,class sd::Window *,class sd::View *,class SdDrawDocument *,class SfxRequest &) sd/source/ui/inc/GraphicViewShell.hxx:43 class SfxViewFactory * sd::GraphicViewShell::Factory() sd/source/ui/inc/GraphicViewShell.hxx:43 @@ -1400,23 +1360,23 @@ slideshow/source/engine/activities/activitiesfactory.cxx:566 void slideshow::internal::(anonymous namespace)::ValuesActivity::perform(unsigned int,unsigned int) const slideshow/source/engine/activities/activitiesfactory.cxx:581 void slideshow::internal::(anonymous namespace)::ValuesActivity::performEnd() -slideshow/source/engine/animationfactory.cxx:613 - void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch() slideshow/source/engine/animationfactory.cxx:616 + void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch() +slideshow/source/engine/animationfactory.cxx:619 void slideshow::internal::(anonymous namespace)::GenericAnimation::start(const class std::shared_ptr &,const class std::shared_ptr &) -slideshow/source/engine/animationfactory.cxx:694 +slideshow/source/engine/animationfactory.cxx:698 _Bool slideshow::internal::(anonymous namespace)::GenericAnimation::operator()(const typename type-parameter-?-?::ValueType &) -slideshow/source/engine/animationfactory.cxx:711 +slideshow/source/engine/animationfactory.cxx:715 _Bool slideshow::internal::(anonymous namespace)::GenericAnimation::operator()(typename type-parameter-?-?::ValueType) -slideshow/source/engine/animationfactory.cxx:731 +slideshow/source/engine/animationfactory.cxx:736 typename type-parameter-?-?::ValueType slideshow::internal::(anonymous namespace)::GenericAnimation::getUnderlyingValue() const slideshow/source/engine/opengl/TransitionImpl.hxx:184 void OGLTransitionImpl::cleanup() -slideshow/source/inc/box2dtools.hxx:119 +slideshow/source/inc/box2dtools.hxx:160 void box2d::utils::box2DWorld::setShapeAngle(const class com::sun::star::uno::Reference,const double) -slideshow/source/inc/box2dtools.hxx:206 +slideshow/source/inc/box2dtools.hxx:262 _Bool box2d::utils::box2DWorld::shapesInitialized() -slideshow/source/inc/box2dtools.hxx:228 +slideshow/source/inc/box2dtools.hxx:300 class std::shared_ptr box2d::utils::box2DWorld::makeShapeStatic(const class std::shared_ptr &) slideshow/source/inc/listenercontainer.hxx:44 _Bool slideshow::internal::FunctionApply::apply(type-parameter-?-?,const class std::shared_ptr &) @@ -1436,6 +1396,8 @@ slideshow/source/inc/listenercontainer.hxx:54 _Bool slideshow::internal::FunctionApply::apply(type-parameter-?-?,const class std::shared_ptr &) slideshow/source/inc/listenercontainer.hxx:54 _Bool slideshow::internal::FunctionApply::apply(type-parameter-?-?,const class std::shared_ptr &) +smoketest/libtest.cxx:70 + int main(int,char **) starmath/inc/format.hxx:138 _Bool SmFormat::operator!=(const class SmFormat &) const svgio/inc/svgstyleattributes.hxx:346 @@ -1516,12 +1478,12 @@ sw/inc/docary.hxx:94 void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) sw/inc/docary.hxx:94 void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) +sw/inc/docary.hxx:94 + void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) sw/inc/docary.hxx:94 void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) sw/inc/docary.hxx:94 void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) -sw/inc/docary.hxx:94 - void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) sw/inc/docary.hxx:94 void SwVectorModifyBase::insert(class __gnu_debug::_Safe_iterator > >, class std::__debug::vector >, struct std::random_access_iterator_tag>,type-parameter-?-?,type-parameter-?-?) sw/inc/docary.hxx:140 @@ -1802,6 +1764,12 @@ vcl/source/app/scheduler.cxx:83 basic_ostream & (anonymous namespace)::operator<<(basic_ostream &,const class Idle &) vcl/source/bitmap/BitmapColorQuantizationFilter.cxx:113 int ::operator()(const void *,const void *) const +vcl/source/control/imivctl.hxx:256 + void SvxIconChoiceCtrl_Impl::SetChoiceWithCursor() +vcl/source/control/imivctl.hxx:262 + void SvxIconChoiceCtrl_Impl::CreateAutoMnemonics(class MnemonicGenerator *) +vcl/source/control/imivctl.hxx:389 + void SvxIconChoiceCtrl_Impl::SetSelectionMode(enum SelectionMode) vcl/source/edit/textdat2.hxx:85 class __gnu_debug::_Safe_iterator > *, class std::__cxx1998::vector >, class std::allocator > > > >, class std::__debug::vector >, class std::allocator > > >, struct std::random_access_iterator_tag> TETextPortionList::begin() const vcl/source/edit/textdat2.hxx:87 @@ -1830,18 +1798,6 @@ writerfilter/source/ooxml/OOXMLPropertySet.hxx:176 class __gnu_debug::_Safe_iterator *, class std::__cxx1998::vector, class std::allocator > > >, class std::__debug::vector, class std::allocator > >, struct std::random_access_iterator_tag> writerfilter::ooxml::OOXMLPropertySet::end() const writerfilter/source/ooxml/OOXMLPropertySet.hxx:179 class std::__cxx11::basic_string, class std::allocator > writerfilter::ooxml::OOXMLPropertySet::toString() -xmloff/source/draw/sdxmlimp_impl.hxx:163 - const class SvXMLTokenMap & SdXMLImport::GetBodyElemTokenMap() -xmloff/source/draw/sdxmlimp_impl.hxx:164 - const class SvXMLTokenMap & SdXMLImport::GetStylesElemTokenMap() -xmloff/source/draw/sdxmlimp_impl.hxx:165 - const class SvXMLTokenMap & SdXMLImport::GetMasterPageElemTokenMap() -xmloff/source/draw/sdxmlimp_impl.hxx:166 - const class SvXMLTokenMap & SdXMLImport::GetPageMasterAttrTokenMap() -xmloff/source/draw/sdxmlimp_impl.hxx:167 - const class SvXMLTokenMap & SdXMLImport::GetPageMasterStyleAttrTokenMap() -xmloff/source/draw/sdxmlimp_impl.hxx:168 - const class SvXMLTokenMap & SdXMLImport::GetPresentationPlaceholderAttrTokenMap() xmlsecurity/source/gpg/XMLEncryption.hxx:25 XMLEncryptionGpg::XMLEncryptionGpg() xmlsecurity/source/xmlsec/nss/nssinitializer.hxx:46 diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index eea49d559338..ea34e5714e7b 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -235,10 +235,6 @@ public: virtual FactoryFunction GetUITestFactory() const override; - // returns the minimum size a bordered Edit should have given the current - // global style settings (needed by sc's inputwin.cxx) - static Size GetMinimumEditSize(); - void SetForceControlBackground(bool b) { mbForceControlBackground = b; } bool IsPassword() const { return mbPassword; } diff --git a/include/xmloff/txtimp.hxx b/include/xmloff/txtimp.hxx index 1dbe504a2b09..0eb09e6f580c 100644 --- a/include/xmloff/txtimp.hxx +++ b/include/xmloff/txtimp.hxx @@ -568,8 +568,6 @@ public: OUString & o_rXmlId, std::shared_ptr< ::xmloff::ParsedRDFaAttributes > & o_rpRDFaAttributes); - OUString FindActiveBookmarkName(); - void pushFieldCtx( const OUString& name, const OUString& type ); css::uno::Reference popFieldCtx(); void addFieldParam( const OUString& name, const OUString& value ); diff --git a/sd/source/ui/func/fusearch.cxx b/sd/source/ui/func/fusearch.cxx index 8e07d5b18310..73a112bf44c6 100644 --- a/sd/source/ui/func/fusearch.cxx +++ b/sd/source/ui/func/fusearch.cxx @@ -64,11 +64,6 @@ FuSearch* FuSearch::createPtr(ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View return xFunc; } -rtl::Reference FuSearch::Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ) -{ - return rtl::Reference(createPtr(pViewSh, pWin, pView, pDoc, rReq)); -} - void FuSearch::DoExecute( SfxRequest& ) { mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArraySpell ); diff --git a/sd/source/ui/inc/fusearch.hxx b/sd/source/ui/inc/fusearch.hxx index e9dcb2546d49..5921b603244d 100644 --- a/sd/source/ui/inc/fusearch.hxx +++ b/sd/source/ui/inc/fusearch.hxx @@ -31,7 +31,6 @@ class FuSearch final : public FuPoor { public: - static rtl::Reference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); static FuSearch* createPtr(ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq); virtual void DoExecute( SfxRequest& rReq ) override; diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index b14789aaf133..c8087261ebd2 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2669,14 +2669,6 @@ Size Edit::CalcMinimumSize() const return CalcMinimumSizeForText(GetText()); } -Size Edit::GetMinimumEditSize() -{ - vcl::Window* pDefWin = ImplGetDefaultWindow(); - ScopedVclPtrInstance< Edit > aEdit( pDefWin, WB_BORDER ); - Size aSize( aEdit->CalcMinimumSize() ); - return aSize; -} - Size Edit::GetOptimalSize() const { return CalcMinimumSize(); diff --git a/vcl/source/control/imivctl.hxx b/vcl/source/control/imivctl.hxx index d361b28c8ce3..5dfa9c06946e 100644 --- a/vcl/source/control/imivctl.hxx +++ b/vcl/source/control/imivctl.hxx @@ -253,13 +253,11 @@ public: SvxIconChoiceCtrl_Impl( SvtIconChoiceCtrl* pView, WinBits nWinStyle ); ~SvxIconChoiceCtrl_Impl(); - void SetChoiceWithCursor() { bChooseWithCursor = true; } void Clear( bool bInCtor ); void SetStyle( WinBits nWinStyle ); WinBits GetStyle() const { return nWinBits; } void InsertEntry( std::unique_ptr, size_t nPos ); void RemoveEntry( size_t nPos ); - void CreateAutoMnemonics( MnemonicGenerator* _pGenerator ); void FontModified(); void SelectAll(); void SelectEntry( @@ -386,7 +384,6 @@ public: return maEntries[ nPos ].get(); } SvxIconChoiceCtrlEntry* GetFirstSelectedEntry() const; - void SetSelectionMode( SelectionMode eMode ) { eSelectionMode=eMode; } sal_Int32 GetEntryListPos( SvxIconChoiceCtrlEntry const * ) const; void InitSettings(); tools::Rectangle GetOutputRect() const; diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx index 7ba4ef997499..14dd3e302c1e 100644 --- a/vcl/source/control/imivctl1.cxx +++ b/vcl/source/control/imivctl1.cxx @@ -233,38 +233,6 @@ void SvxIconChoiceCtrl_Impl::RemoveEntry(size_t nPos) RecalcAllBoundingRectsSmart(); } -void SvxIconChoiceCtrl_Impl::CreateAutoMnemonics( MnemonicGenerator* _pGenerator ) -{ - std::unique_ptr< MnemonicGenerator > pAutoDeleteOwnGenerator; - if ( !_pGenerator ) - { - _pGenerator = new MnemonicGenerator; - pAutoDeleteOwnGenerator.reset( _pGenerator ); - } - - sal_uLong nEntryCount = GetEntryCount(); - sal_uLong i; - - // insert texts in generator - for( i = 0; i < nEntryCount; ++i ) - { - DBG_ASSERT( GetEntry( i ), "-SvxIconChoiceCtrl_Impl::CreateAutoMnemonics(): more expected than provided!" ); - - _pGenerator->RegisterMnemonic( GetEntry( i )->GetText() ); - } - - // exchange texts with generated mnemonics - for( i = 0; i < nEntryCount; ++i ) - { - SvxIconChoiceCtrlEntry* pEntry = GetEntry( i ); - OUString aTxt = pEntry->GetText(); - - OUString aNewText = _pGenerator->CreateMnemonic( aTxt ); - if( aNewText != aTxt ) - pEntry->SetText( aNewText ); - } -} - tools::Rectangle SvxIconChoiceCtrl_Impl::GetOutputRect() const { Point aOrigin( pView->GetMapMode().GetOrigin() ); diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 4e46cedcc135..7ccd96e06930 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2639,18 +2639,6 @@ bool XMLTextImportHelper::FindAndRemoveBookmarkStartRange( } } -OUString XMLTextImportHelper::FindActiveBookmarkName() -{ - if (!m_xImpl->m_BookmarkVector.empty()) - { - return m_xImpl->m_BookmarkVector.back(); - } - else - { - return OUString(); // return the empty string on error... - } -} - void XMLTextImportHelper::pushFieldCtx( const OUString& name, const OUString& type ) { m_xImpl->m_FieldStack.push(Impl::field_stack_item_t( -- cgit