From 5eb0a569e31771277263262bfeafb2c6fcf57dba Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Jan 2024 12:28:10 +0200 Subject: loplugin:unnecessarymethods Change-Id: I3bc2bde431dc71d4a01f7e314c67be31271be9e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162681 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/unusedmethods.results | 108 ++++++++++----------- .../clang/unusedmethods.unused-returns.results | 10 +- cui/source/options/optsave.hxx | 2 - editeng/source/items/textitem.cxx | 1 - include/editeng/nhypitem.hxx | 2 - sw/qa/inc/swmodeltestbase.hxx | 6 -- sw/qa/unit/swmodeltestbase.cxx | 10 -- writerfilter/source/dmapper/DomainMapper_Impl.hxx | 2 - 8 files changed, 58 insertions(+), 83 deletions(-) diff --git a/compilerplugins/clang/unusedmethods.results b/compilerplugins/clang/unusedmethods.results index 1a9785e836b0..be4adf18f3be 100644 --- a/compilerplugins/clang/unusedmethods.results +++ b/compilerplugins/clang/unusedmethods.results @@ -132,12 +132,12 @@ cui/source/inc/GraphicsTestsDialog.hxx:48 void GraphicsTestsDialog::LinkStubHandleResultViewRequest(void *,weld::Button &) cui/source/inc/SvxNotebookbarConfigPage.hxx:40 void SvxNotebookbarConfigPage::SetElement() +cui/source/options/optsave.hxx:82 + void SvxSaveTabPage::DetectHiddenControls() dbaccess/source/filter/hsqldb/fbalterparser.hxx:19 void dbahsql::FbAlterStmtParser::ensureProperTableLengths() const dbaccess/source/filter/hsqldb/parseschema.hxx:80 const std::map > & dbahsql::SchemaParser::getPrimaryKeys() const -dbaccess/source/ui/app/AppController.hxx:144 - rtl::OUString dbaui::OApplicationController::getStrippedDatabaseName() const dbaccess/source/ui/inc/dsmeta.hxx:87 __gnu_debug::_Safe_iterator, std::set > dbaui::FeatureSet::begin() const dbaccess/source/ui/inc/dsmeta.hxx:88 @@ -186,19 +186,15 @@ editeng/inc/edtspell.hxx:103 __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator >, std::vector > WrongList::begin() const editeng/inc/edtspell.hxx:104 __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator >, std::vector > WrongList::end() const -editeng/inc/ParagraphPortionList.hxx:51 +editeng/inc/ParagraphPortionList.hxx:59 void ParaPortionList::Append(std::unique_ptr) -editeng/inc/ParagraphPortionList.hxx:54 - __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator *, std::__cxx1998::vector > >, std::vector > > ParaPortionList::begin() -editeng/inc/ParagraphPortionList.hxx:55 - __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator *, std::__cxx1998::vector > >, std::vector > > ParaPortionList::end() -editeng/inc/ParagraphPortionList.hxx:56 +editeng/inc/ParagraphPortionList.hxx:71 __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator *, std::__cxx1998::vector > >, std::vector > > ParaPortionList::cbegin() const -editeng/inc/ParagraphPortionList.hxx:57 +editeng/inc/ParagraphPortionList.hxx:72 __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator *, std::__cxx1998::vector > >, std::vector > > ParaPortionList::cend() const editeng/source/editeng/impedit.hxx:236 tools::Rectangle LOKSpecialPositioning::GetWindowPos(const tools::Rectangle &,enum MapUnit) const -editeng/source/editeng/impedit.hxx:783 +editeng/source/editeng/impedit.hxx:801 double ImpEditEngine::scaleYFontValue(unsigned short) const embeddedobj/source/msole/olecomponent.hxx:75 _Bool OleComponent::InitializeObject_Impl() @@ -304,9 +300,9 @@ include/basegfx/matrix/b3dhommatrix.hxx:97 basegfx::B3DHomMatrix & basegfx::B3DHomMatrix::operator+=(const basegfx::B3DHomMatrix &) include/basegfx/matrix/b3dhommatrix.hxx:98 basegfx::B3DHomMatrix & basegfx::B3DHomMatrix::operator-=(const basegfx::B3DHomMatrix &) -include/basegfx/matrix/b3dhommatrix.hxx:105 +include/basegfx/matrix/b3dhommatrix.hxx:104 basegfx::B3DHomMatrix & basegfx::B3DHomMatrix::operator*=(double) -include/basegfx/matrix/b3dhommatrix.hxx:106 +include/basegfx/matrix/b3dhommatrix.hxx:105 basegfx::B3DHomMatrix & basegfx::B3DHomMatrix::operator/=(double) include/basegfx/matrix/hommatrixtemplate.hxx:43 basegfx::internal::ImplMatLine::ImplMatLine(unsigned short) @@ -440,15 +436,21 @@ include/codemaker/global.hxx:57 FileStream & operator<<(FileStream &,const rtl::OStringBuffer &) include/codemaker/options.hxx:54 const rtl::OString & Options::getProgramName() const +include/codemaker/typemanager.hxx:46 + const rtl::Reference & TypeManager::getManager() const +include/codemaker/typemanager.hxx:50 + const std::vector > & TypeManager::getPrimaryProviders() const include/comphelper/automationinvokedzone.hxx:26 comphelper::Automation::AutomationInvokedZone::AutomationInvokedZone() include/comphelper/basicio.hxx:52 const com::sun::star::uno::Reference & comphelper::operator>>(const com::sun::star::uno::Reference &,unsigned int &) include/comphelper/basicio.hxx:53 const com::sun::star::uno::Reference & comphelper::operator<<(const com::sun::star::uno::Reference &,unsigned int) -include/comphelper/configuration.hxx:289 +include/comphelper/configuration.hxx:301 void comphelper::ConfigurationLocalizedProperty::set(const type-parameter-?-? &,const std::shared_ptr &) include/comphelper/configuration.hxx:324 + _Bool comphelper::ConfigurationGroup::isReadOnly(const com::sun::star::uno::Reference &) +include/comphelper/configuration.hxx:345 com::sun::star::uno::Reference comphelper::ConfigurationGroup::get(const std::shared_ptr &) include/comphelper/errcode.hxx:96 _Bool ErrCode::operator<(const ErrCode &) const @@ -860,7 +862,7 @@ include/docmodel/theme/Theme.hxx:173 void model::Theme::setFormatScheme(const model::FormatScheme &) include/docmodel/theme/Theme.hxx:190 std::vector model::Theme::GetColors() const -include/drawinglayer/geometry/viewinformation2d.hxx:123 +include/drawinglayer/geometry/viewinformation2d.hxx:124 _Bool drawinglayer::geometry::ViewInformation2D::operator!=(const drawinglayer::geometry::ViewInformation2D &) const include/drawinglayer/primitive2d/baseprimitive2d.hxx:136 _Bool drawinglayer::primitive2d::BasePrimitive2D::operator!=(const drawinglayer::primitive2d::BasePrimitive2D &) const @@ -892,14 +894,16 @@ include/drawinglayer/tools/primitive2dxmldump.hxx:45 void drawinglayer::Primitive2dXmlDump::dump(const drawinglayer::primitive2d::Primitive2DContainer &,const rtl::OUString &) include/editeng/colritem.hxx:76 void SvxColorItem::setComplexColor(const model::ComplexColor &) -include/editeng/editeng.hxx:246 - _Bool EditEngine::GetVertical() const include/editeng/editeng.hxx:248 + _Bool EditEngine::GetVertical() const +include/editeng/editeng.hxx:250 enum TextRotation EditEngine::GetRotation() const include/editeng/hyphenzoneitem.hxx:67 _Bool SvxHyphenZoneItem::IsPageEnd() const include/editeng/lrspitem.hxx:67 SvxLeftMarginItem::SvxLeftMarginItem(const long,const unsigned short) +include/editeng/nhypitem.hxx:29 + SfxPoolItem * SvxNoHyphenItem::CreateDefault() include/editeng/outlobj.hxx:146 std::optional::optional(struct std::in_place_t,type-parameter-?-? &&...) include/editeng/outlobj.hxx:165 @@ -1128,31 +1132,35 @@ include/sfx2/viewsh.hxx:468 enum LOKDeviceFormFactor SfxViewShell::GetLOKDeviceFormFactor() const include/svl/itemiter.hxx:44 _Bool SfxItemIter::IsAtEnd() const -include/svl/itempool.hxx:104 +include/svl/itempool.hxx:97 unsigned short SfxItemPool::GetSize_Impl() const -include/svl/itempool.hxx:126 +include/svl/itempool.hxx:117 void SfxItemPool::AddRef(const SfxPoolItem &) -include/svl/itempool.hxx:127 +include/svl/itempool.hxx:118 unsigned int SfxItemPool::ReleaseRef(const SfxPoolItem &,unsigned int) -include/svl/itempool.hxx:156 +include/svl/itempool.hxx:149 + const type-parameter-?-? * SfxItemPool::GetPoolDefaultItem(TypedWhichId) const +include/svl/itempool.hxx:164 enum MapUnit SfxItemPool::GetDefaultMetric() const -include/svl/itempool.hxx:198 - const type-parameter-?-? * SfxItemPool::GetItem2Default(TypedWhichId) const -include/svl/itemset.hxx:115 +include/svl/itemset.hxx:117 _Bool SfxItemSet::empty() const -include/svl/itemset.hxx:116 +include/svl/itemset.hxx:118 int SfxItemSet::size() const -include/svl/itemset.hxx:117 +include/svl/itemset.hxx:119 const SfxPoolItem * SfxItemSet::operator[](int) const include/svl/lockfilecommon.hxx:60 void svt::LockFileCommon::SetURL(const rtl::OUString &) include/svl/ondemand.hxx:346 const CharClass & OnDemandCharClass::operator*() const -include/svl/poolitem.hxx:244 +include/svl/poolitem.hxx:175 + void SfxPoolItem::setDynamicDefault() +include/svl/poolitem.hxx:254 type-parameter-?-? * SfxPoolItem::DynamicWhichCast(TypedWhichId) -include/svl/poolitem.hxx:293 - _Bool IsPoolDefaultItem(const SfxPoolItem *) -include/svl/poolitem.hxx:308 +include/svl/poolitem.hxx:352 + _Bool IsUserDefaultItem(const SfxPoolItem *) +include/svl/poolitem.hxx:362 + _Bool IsDynamicDefaultItem(const SfxPoolItem *) +include/svl/poolitem.hxx:372 _Bool IsPooledItem(const SfxPoolItem *) include/svl/typedwhich.hxx:31 TypedWhichId::TypedWhichId(TypedWhichId,typename enable_if, int>::type) @@ -1176,8 +1184,6 @@ include/svl/typedwhich.hxx:31 TypedWhichId::TypedWhichId(TypedWhichId,typename enable_if, int>::type) include/svl/typedwhich.hxx:31 TypedWhichId::TypedWhichId(TypedWhichId,typename enable_if, int>::type) -include/svl/typedwhich.hxx:31 - TypedWhichId::TypedWhichId(TypedWhichId,typename enable_if, int>::type) include/svl/typedwhich.hxx:31 TypedWhichId::TypedWhichId(TypedWhichId,typename enable_if, int>::type) include/svl/typedwhich.hxx:31 @@ -1998,8 +2004,6 @@ include/svl/typedwhich.hxx:31 TypedWhichId::TypedWhichId(TypedWhichId,typename enable_if, int>::type) include/svl/whichranges.hxx:52 void svl::Items_t::fill(struct std::pair *) -include/svtools/accessibilityoptions.hxx:30 - SvtAccessibilityOptions::SvtAccessibilityOptions() include/svtools/ctrlbox.hxx:407 void FontStyleBox::set_size_request(int,int) include/svtools/ctrlbox.hxx:478 @@ -2232,18 +2236,14 @@ include/unotools/resmgr.hxx:62 _Bool TranslateNId::operator bool() const include/unotools/resmgr.hxx:65 _Bool TranslateNId::operator!=(const struct TranslateNId &) const -include/unotools/securityoptions.hxx:62 +include/unotools/securityoptions.hxx:63 _Bool SvtSecurityOptions::Certificate::operator==(const struct SvtSecurityOptions::Certificate &) const -include/unotools/streamhelper.hxx:45 - utl::OInputStreamHelper::OInputStreamHelper(tools::SvRef,unsigned int) include/unotools/textsearch.hxx:121 basic_ostream & utl::operator<<(basic_ostream &,const enum utl::SearchParam::SearchType &) include/unotools/weakref.hxx:72 unotools::WeakReference::WeakReference(type-parameter-?-? &) include/vcl/alpha.hxx:46 _Bool AlphaMask::operator!=(const AlphaMask &) const -include/vcl/alpha.hxx:100 - _Bool AlphaMask::CopyPixel(const tools::Rectangle &,const tools::Rectangle &) include/vcl/animate/Animation.hxx:42 _Bool Animation::operator!=(const Animation &) const include/vcl/animate/AnimationFrame.hxx:77 @@ -2506,7 +2506,7 @@ include/vcl/weldutils.hxx:350 void weld::DateFormatter::CursorChangedHdl(weld::Entry &) include/vcl/weldutils.hxx:350 void weld::DateFormatter::LinkStubCursorChangedHdl(void *,weld::Entry &) -include/vcl/window.hxx:376 +include/vcl/window.hxx:377 const char * ImplDbgCheckWindow(const void *) include/vcl/windowstate.hxx:123 std::basic_ostream & vcl::operator<<(std::basic_ostream &,const vcl::WindowData &) @@ -2608,8 +2608,6 @@ sc/inc/datamapper.hxx:79 void sc::ExternalDataSource::setProvider(const rtl::OUString &) sc/inc/document.hxx:908 rtl::OUString ScDocument::MaxRowAsString() const -sc/inc/document.hxx:1952 - void ScDocument::SetPattern(short,int,short,const ScPatternAttr &) sc/inc/dpfilteredcache.hxx:148 void ScDPFilteredCache::dump() const sc/inc/formulacell.hxx:513 @@ -2678,7 +2676,7 @@ sc/inc/mtvelements.hxx:89 void svl::mdds_mtv_insert_values(mdds::mtv::base_element_block &,unsigned long,const svl::SharedString &,const type-parameter-?-? &,const type-parameter-?-? &) sc/inc/mtvfunctions.hxx:376 void sc::ProcessElements2(type-parameter-?-? &,type-parameter-?-? &,type-parameter-?-? &) -sc/inc/patattr.hxx:98 +sc/inc/patattr.hxx:100 _Bool CellAttributeHolder::operator!() const sc/inc/rangecache.hxx:52 _Bool ScSortedRangeCache::isValid() const @@ -2838,9 +2836,7 @@ sd/inc/sdabstdlg.hxx:172 VclPtr SdAbstractDialogFactory::CreateSdOutlineBulletTabDlg(weld::Window *,const SfxItemSet *,sd::View *) sd/inc/sddll.hxx:47 SdDLL::SdDLL() -sd/source/filter/eppt/epptooxml.hxx:79 - int oox::core::PowerPointExport::GetPPTXLayoutId(int) -sd/source/filter/eppt/epptooxml.hxx:93 +sd/source/filter/eppt/epptooxml.hxx:92 void oox::core::PowerPointExport::WriteDefaultColorSchemes(const std::shared_ptr &) sd/source/filter/ppt/pptinanimations.hxx:107 void ppt::AnimationImporter::dump(const char *,long) @@ -3248,9 +3244,7 @@ sw/inc/textboxhelper.hxx:256 _Bool SwTextBoxNode::IsGroupTextBox() const sw/inc/view.hxx:479 void SwView::LinkStubMoveNavigationHdl(void *,void *) -sw/inc/view.hxx:627 - void SwView::ApplyAccessibilityOptions() -sw/inc/viewopt.hxx:314 +sw/inc/viewopt.hxx:316 const struct SwViewColors & SwViewOption::GetColorConfig() const sw/inc/viscrs.hxx:227 SwShellTableCursor * SwShellTableCursor::GetNext() @@ -3260,8 +3254,10 @@ sw/inc/viscrs.hxx:229 SwShellTableCursor * SwShellTableCursor::GetPrev() sw/inc/viscrs.hxx:230 const SwShellTableCursor * SwShellTableCursor::GetPrev() const -sw/qa/extras/layout/layout3.cxx:2273 +sw/qa/extras/layout/layout3.cxx:2344 int main() +sw/qa/inc/swmodeltestbase.hxx:111 + void SwModelTestBase::executeImportTest(const char *,const char *) sw/qa/inc/swmodeltestbase.hxx:229 com::sun::star::uno::Reference SwModelTestBase::getParagraphAnchoredObject(const int,const com::sun::star::uno::Reference &) const sw/source/core/access/accportions.cxx:55 @@ -3280,7 +3276,7 @@ sw/source/core/inc/frame.hxx:1426 long SwRectFnSet::RightDist(const SwRect &,long) const sw/source/core/inc/mvsave.hxx:171 _Bool ZSortFly::operator==(const ZSortFly &) const -sw/source/core/text/porlin.hxx:125 +sw/source/core/text/porlin.hxx:109 _Bool SwLinePortion::IsTabRightPortion() const sw/source/core/text/txtpaint.hxx:72 DbgBackColor::DbgBackColor(OutputDevice *,const _Bool) @@ -3288,9 +3284,7 @@ sw/source/core/text/txtpaint.hxx:79 DbgRect::DbgRect(OutputDevice *,const tools::Rectangle &,const _Bool,Color) sw/source/filter/ww8/ww8par.hxx:1043 WW8PostProcessAttrsInfo::WW8PostProcessAttrsInfo(int,int,SwPaM &) -sw/source/uibase/inc/pview.hxx:270 - void SwPagePreview::ApplyAccessibilityOptions() -sw/source/uibase/inc/swcont.hxx:89 +sw/source/uibase/inc/swcont.hxx:81 _Bool SwContent::operator==(const SwContent &) const sw/source/uibase/inc/unomod.hxx:36 com::sun::star::uno::Reference SwXModule_CreateInstance(const com::sun::star::uno::Reference &) @@ -3462,13 +3456,15 @@ vcl/unx/gtk3/glomenu.cxx:32 void * g_lo_menu_get_instance_private(struct GLOMenu *) writerfilter/source/dmapper/CellColorHandler.hxx:74 model::ComplexColor writerfilter::dmapper::CellColorHandler::getComplexColor() const +writerfilter/source/dmapper/DomainMapper_Impl.hxx:764 + _Bool writerfilter::dmapper::DomainMapper_Impl::GetSdt() const writerfilter/source/dmapper/DomainMapperTableManager.hxx:98 writerfilter::dmapper::TablePositionHandler * writerfilter::dmapper::DomainMapperTableManager::getCurrentTableRealPosition() -writerfilter/source/dmapper/PropertyMap.hxx:361 +writerfilter/source/dmapper/PropertyMap.hxx:364 _Bool writerfilter::dmapper::SectionPropertyMap::getFirstPageHeader() -writerfilter/source/dmapper/PropertyMap.hxx:362 +writerfilter/source/dmapper/PropertyMap.hxx:365 _Bool writerfilter::dmapper::SectionPropertyMap::getFirstPageFooter() -writerfilter/source/dmapper/PropertyMap.hxx:389 +writerfilter/source/dmapper/PropertyMap.hxx:392 int writerfilter::dmapper::SectionPropertyMap::GetBreakType() const writerfilter/source/dmapper/TablePositionHandler.hxx:40 int writerfilter::dmapper::TablePositionHandler::getY() const diff --git a/compilerplugins/clang/unusedmethods.unused-returns.results b/compilerplugins/clang/unusedmethods.unused-returns.results index eb1176c473d2..7866efc445d7 100644 --- a/compilerplugins/clang/unusedmethods.unused-returns.results +++ b/compilerplugins/clang/unusedmethods.unused-returns.results @@ -40,7 +40,7 @@ include/basic/sbstar.hxx:63 _Bool StarBASIC::RTError(ErrCode,const rtl::OUString &,int,int,int) include/comphelper/backupfilehelper.hxx:205 _Bool comphelper::BackupFileHelper::tryPush_extensionInfo(std::basic_string_view) -include/editeng/editview.hxx:280 +include/editeng/editview.hxx:278 ErrCode EditView::Read(SvStream &,enum EETextFormat,SvKeyValueIterator *) include/editeng/outliner.hxx:284 _Bool OutlinerView::Command(const CommandEvent &) @@ -184,13 +184,15 @@ include/unotools/lingucfg.hxx:191 _Bool SvtLinguConfig::GetElementNamesFor(const rtl::OUString &,com::sun::star::uno::Sequence &) const include/unotools/localedatawrapper.hxx:163 const com::sun::star::uno::Sequence & LocaleDataWrapper::getAllInstalledLocaleNames() const +include/vcl/abstdlg.hxx:117 + _Bool AbstractSecurityOptionsDialog::SetSecurityOptions() include/vcl/alpha.hxx:87 _Bool AlphaMask::Scale(const double &,const double &,enum BmpScaleFlag) include/vcl/alpha.hxx:90 _Bool AlphaMask::Convert(enum BmpConversion) include/vcl/alpha.hxx:98 _Bool AlphaMask::Expand(int,int,const Color *) -include/vcl/alpha.hxx:104 +include/vcl/alpha.hxx:100 _Bool AlphaMask::CopyPixel(const tools::Rectangle &,const tools::Rectangle &,const AlphaMask &) include/vcl/BinaryDataContainer.hxx:59 unsigned long BinaryDataContainer::writeToStream(SvStream &) const @@ -367,7 +369,7 @@ sw/source/uibase/inc/fldmgr.hxx:117 sw/source/uibase/inc/mailmergewizard.hxx:78 _Bool SwMailMergeWizard::skipUntil(unsigned short) sw/source/uibase/inc/wrtsh.hxx:429 - _Bool SwWrtShell::GotoFieldmark(const sw::mark::IFieldmark *const) + _Bool SwWrtShell::GotoFieldmark(const sw::mark::IFieldmark *const,_Bool) sw/source/uibase/inc/wrtsh.hxx:437 _Bool SwWrtShell::GotoContentControl(const SwFormatContentControl &,_Bool) ucb/source/ucp/webdav-curl/ContentProperties.hxx:160 @@ -434,7 +436,7 @@ vcl/inc/salgdi.hxx:480 _Bool SalGraphics::implDrawGradient(const basegfx::B2DPolyPolygon &,const struct SalGradient &) vcl/inc/salinst.hxx:177 _Bool SalInstance::CallEventCallback(const void *,int) -vcl/inc/salprn.hxx:116 +vcl/inc/salprn.hxx:119 _Bool SalPrinter::EndJob() vcl/inc/unx/gtk/gtkdata.hxx:336 int GtkSalDisplay::CaptureMouse(SalFrame *) diff --git a/cui/source/options/optsave.hxx b/cui/source/options/optsave.hxx index cb6d63a7e87e..255719184d63 100644 --- a/cui/source/options/optsave.hxx +++ b/cui/source/options/optsave.hxx @@ -79,8 +79,6 @@ private: DECL_LINK( FilterHdl_Impl, weld::ComboBox&, void ); DECL_LINK(ODFVersionHdl_Impl, weld::ComboBox&, void ); - void DetectHiddenControls(); - public: SvxSaveTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~SvxSaveTabPage() override; diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 77e4c6c9cda0..758208f7db81 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -107,7 +107,6 @@ SfxPoolItem* SvxEmphasisMarkItem::CreateDefault() {return new SvxEmphasisMarkIte SfxPoolItem* SvxCharRotateItem::CreateDefault() {return new SvxCharRotateItem(0_deg10, false, TypedWhichId(0));} SfxPoolItem* SvxCharScaleWidthItem::CreateDefault() {return new SvxCharScaleWidthItem(100, TypedWhichId(0));} SfxPoolItem* SvxCharReliefItem::CreateDefault() {return new SvxCharReliefItem(FontRelief::NONE, 0);} -SfxPoolItem* SvxNoHyphenItem::CreateDefault() {return new SvxNoHyphenItem(false, 0);} // class SvxFontListItem ------------------------------------------------- diff --git a/include/editeng/nhypitem.hxx b/include/editeng/nhypitem.hxx index e8ad29dbc625..b0bd0192cb92 100644 --- a/include/editeng/nhypitem.hxx +++ b/include/editeng/nhypitem.hxx @@ -26,8 +26,6 @@ class EDITENG_DLLPUBLIC SvxNoHyphenItem final : public SfxBoolItem { public: - static SfxPoolItem* CreateDefault(); - SvxNoHyphenItem( const bool bNoHyphen, const sal_uInt16 nId ); // "pure virtual Methods" from SfxPoolItem diff --git a/sw/qa/inc/swmodeltestbase.hxx b/sw/qa/inc/swmodeltestbase.hxx index 0a72fe4d5c7e..f837661bed10 100644 --- a/sw/qa/inc/swmodeltestbase.hxx +++ b/sw/qa/inc/swmodeltestbase.hxx @@ -104,12 +104,6 @@ public: SwModelTestBase(const OUString& pTestDocumentPath = OUString(), const OUString& pFilter = {}); protected: - /** - * Helper func used by each unit test to test the 'import' code. - * (Loads the requested file and then calls 'verify' method) - */ - void executeImportTest(const char* filename, const char* pPassword = nullptr); - /** * Helper func used by each unit test to test the 'export' code. * (Loads the requested file, calls 'verify' function, save it to temp file, load the diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx index 99df27cb039d..125370b145de 100644 --- a/sw/qa/unit/swmodeltestbase.cxx +++ b/sw/qa/unit/swmodeltestbase.cxx @@ -62,16 +62,6 @@ SwModelTestBase::SwModelTestBase(const OUString& pTestDocumentPath, const OUStri { } -void SwModelTestBase::executeImportTest(const char* filename, const char* pPassword) -{ - maTempFile.EnableKillingFile(false); - header(); - loadURL(createFileURL(OUString::createFromAscii(filename)), pPassword); - verify(); - finish(); - maTempFile.EnableKillingFile(); -} - void SwModelTestBase::executeLoadVerifyReloadVerify(const char* filename, const char* pPassword) { maTempFile.EnableKillingFile(false); diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index 18bec93a6cb2..6fec79f35d85 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -760,8 +760,6 @@ public: /// Gives access to the currently open run/inline SDTs. const std::stack& GetSdtStarts() const; - /// Getter method for m_bSdt. - bool GetSdt() const { return m_bSdt;} bool GetParaChanged() const { return m_bParaChanged;} bool GetParaHadField() const { return m_bParaHadField; } bool GetRemoveThisPara() const { return m_bRemoveThisParagraph; } -- cgit