From 075e365e20a75dd12c29b0b094fea986f3e1231a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 1 Feb 2020 14:31:09 +0000 Subject: SvxRelativeField is newly unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaeb72e9aa7276736632a66f1eb75277a696e91e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87831 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- extras/source/glade/libreoffice-catalog.xml.in | 3 --- include/svx/relfld.hxx | 7 ------- solenv/bin/native-code.py | 1 - svx/source/dialog/relfld.cxx | 23 ----------------------- 4 files changed, 34 deletions(-) diff --git a/extras/source/glade/libreoffice-catalog.xml.in b/extras/source/glade/libreoffice-catalog.xml.in index 903553e985b5..b132e58b18f5 100644 --- a/extras/source/glade/libreoffice-catalog.xml.in +++ b/extras/source/glade/libreoffice-catalog.xml.in @@ -82,9 +82,6 @@ - #include -#include #include #include -class SAL_DLLPUBLIC_RTTI SvxRelativeField final : public MetricField -{ -public: - SvxRelativeField(vcl::Window* pParent, WinBits nBits, FieldUnit eUnit); -}; - class SVX_DLLPUBLIC RelativeField { private: diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py index 9f4704e82074..f8133a6d7723 100755 --- a/solenv/bin/native-code.py +++ b/solenv/bin/native-code.py @@ -515,7 +515,6 @@ custom_widgets = [ 'SearchResultsBox', 'SidebarToolBox', 'SvxColorValueSet', - 'SvxRelativeField', 'TemplateDefaultView', ] diff --git a/svx/source/dialog/relfld.cxx b/svx/source/dialog/relfld.cxx index a6609d2009a4..d8db417a9717 100644 --- a/svx/source/dialog/relfld.cxx +++ b/svx/source/dialog/relfld.cxx @@ -18,29 +18,6 @@ */ #include -#include - -SvxRelativeField::SvxRelativeField( - vcl::Window *const pParent, WinBits const nBits, FieldUnit const eUnit) - : MetricField( pParent, nBits) -{ - SetUnit(eUnit); - SetDecimalDigits( 2 ); - SetMin( 0 ); - SetMax( 9999 ); -} - -extern "C" SAL_DLLPUBLIC_EXPORT void makeSvxRelativeField(VclPtr & rRet, const VclPtr & pParent, VclBuilder::stringmap & rMap) -{ - static_assert(std::is_same_v, - decltype(makeSvxRelativeField)>); - OUString const custom(BuilderUtils::extractCustomProperty(rMap)); - FieldUnit const eUnit(BuilderUtils::detectUnit(custom)); - rRet = VclPtr::Create(pParent, - WB_BORDER | WB_SPIN | WB_REPEAT | - WB_LEFT | WB_GROUP, - eUnit); -} RelativeField::RelativeField(std::unique_ptr pControl) : m_xSpinButton(std::move(pControl)) -- cgit