From 646daee253b69404591c006ec6e717b6660af30b Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Wed, 27 Mar 2013 02:57:35 +0100 Subject: kill some unused inlines Change-Id: I17160b264b547067c694dd268eb0d3bd1086565d --- sw/source/core/doc/number.cxx | 9 --------- sw/source/core/docnode/nodes.cxx | 5 ----- sw/source/ui/dialog/uiregionsw.cxx | 5 ----- 3 files changed, 19 deletions(-) (limited to 'sw/source') diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index 7dd9b3d7a753..6efe572e9a96 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -1104,15 +1104,6 @@ namespace numfunc return *mpFont; } - inline short GetFontWeight() const - { - return static_cast(meFontWeight); - } - - inline short GetFontItalic() const - { - return static_cast(meFontItalic); - } inline sal_Unicode GetChar( sal_uInt8 p_nListLevel ) const { if (p_nListLevel >= MAXLEVEL) diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx index 7ce9e621d1c3..543aa24d1f76 100644 --- a/sw/source/core/docnode/nodes.cxx +++ b/sw/source/core/docnode/nodes.cxx @@ -1836,11 +1836,6 @@ void SwNodes::MoveRange( SwPaM & rPam, SwPosition & rPos, SwNodes& rNodes ) |* *************************************************************************/ -inline sal_uInt8 MaxLvl( sal_uInt8 nMin, sal_uInt8 nMax, short nNew ) -{ - return (sal_uInt8)(nNew < nMin ? nMin : nNew > nMax ? nMax : nNew); -} - void SwNodes::_CopyNodes( const SwNodeRange& rRange, const SwNodeIndex& rIndex, sal_Bool bNewFrms, sal_Bool bTblInsDummyNode ) const { diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index e4a741b0367a..4e7f724b0e71 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -1900,11 +1900,6 @@ IMPL_LINK( SwInsertSectionTabPage, DlgClosedHdl, sfx2::FileDialogHelper *, _pFil // 5 - A, .., AA, .., - 9 // 6 - a, .., aa, .., - 10 -inline sal_uInt16 GetNumPos( sal_uInt16 n ) -{ - return SVX_NUM_ARABIC < n ? n - 4 : n; -} - inline SvxExtNumType GetNumType( sal_uInt16 n ) { return (SvxExtNumType)(4 < n ? n + 4 : n ); -- cgit