loplugin:unusedmethods

Change-Id: I8041b975ee8e1cb0a75c43c6332f315627847033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180343
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2025-01-16 16:47:08 +01:00
parent 2507d08388
commit 6c8c2ce7c3
21 changed files with 0 additions and 143 deletions
@@ -126,9 +126,6 @@ namespace CharacterProperties
UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS) void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS) bool IsCharacterPropertyHandle( sal_Int32 nHandle );
UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS) css::awt::FontDescriptor createFontDescriptorFromPropertySet(
const css::uno::Reference< css::beans::XMultiPropertySet > & xMultiPropSet );
}
} // namespace chart
@@ -418,45 +418,6 @@ bool CharacterProperties::IsCharacterPropertyHandle( sal_Int32 nHandle )
nHandle < CharacterProperties::FAST_PROPERTY_ID_END_CHAR_PROP );
}
awt::FontDescriptor CharacterProperties::createFontDescriptorFromPropertySet(
const uno::Reference< beans::XMultiPropertySet > & xMultiPropSet )
{
awt::FontDescriptor aResult;
// Note: keep this sorted!
uno::Sequence< OUString > aPropNameSeq{
u"CharFontCharSet"_ustr, // CharSet
u"CharFontFamily"_ustr, // Family
u"CharFontName"_ustr, // Name
u"CharFontPitch"_ustr, // Pitch
u"CharFontStyleName"_ustr, // StyleName
u"CharHeight"_ustr, // Height
u"CharPosture"_ustr, // Slant
u"CharStrikeout"_ustr, // Strikeout
u"CharUnderline"_ustr, // Underline
u"CharWeight"_ustr, // Weight
u"CharWordMode"_ustr}; // WordLineMode
uno::Sequence< uno::Any > aValues( xMultiPropSet->getPropertyValues( aPropNameSeq ));
sal_Int32 i=0;
// Note keep this sorted according to the list above (comments are the fieldnames)
aValues[ i++ ] >>= aResult.CharSet;
aValues[ i++ ] >>= aResult.Family;
aValues[ i++ ] >>= aResult.Name;
aValues[ i++ ] >>= aResult.Pitch;
aValues[ i++ ] >>= aResult.StyleName;
float fCharHeight = 0;
aValues[ i++ ] >>= fCharHeight;
aResult.Height = static_cast< sal_Int16 >( fCharHeight );
aValues[ i++ ] >>= aResult.Slant;
aValues[ i++ ] >>= aResult.Strikeout;
aValues[ i++ ] >>= aResult.Underline;
aValues[ i++ ] >>= aResult.Weight;
aValues[ i++ ] >>= aResult.WordLineMode;
OSL_ASSERT( i == aValues.getLength());
return aResult;
}
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@@ -32,7 +32,6 @@ private:
sdr::annotation::AnnotationViewData maViewData;
public:
AnnotationObject(SdrModel& rSdrModel);
AnnotationObject(SdrModel& rSdrModel, AnnotationObject const& rSource);
AnnotationObject(SdrModel& rSdrModel, tools::Rectangle const& rRectangle,
sdr::annotation::AnnotationViewData const& aAnnotationViewData);
-1
View File
@@ -768,7 +768,6 @@ public:
SAL_DLLPRIVATE bool IsDockingWindow() const;
bool IsDialog() const;
bool IsMenuFloatingWindow() const;
bool IsToolbarFloatingWindow() const;
bool IsNativeFrame() const;
bool IsTopWindow() const;
SystemWindow* GetSystemWindow() const;
@@ -135,21 +135,6 @@ struct RenderState
{
return maObjectsDone.find(pObject) != maObjectsDone.end();
}
static std::string getObjectHash(SdrObject* pObject)
{
css::uno::Reference<css::drawing::XShape> xShape = GetXShapeForSdrObject(pObject);
if (xShape.is())
{
css::uno::Reference<css::uno::XInterface> xRef;
css::uno::Any(xShape) >>= xRef;
if (xRef.is())
return GetInterfaceHash(xRef);
}
SAL_WARN("sd", "RenderState::getObjectHash: failed");
return std::string();
}
};
/** Renders a slide */
-5
View File
@@ -83,11 +83,6 @@ public:
void SetOverridingMainShell(const std::shared_ptr<ViewShell>& pViewShell);
std::shared_ptr<ViewShell> GetOverridingMainShell();
/** Activate the given shell which is not a view shell. For view shells
use the ActivateViewShell() method.
*/
void ActivateShell(SfxShell* pShell);
/** Activate the given shell, putting it at the bottom of the stack instead of
the top.
*/
@@ -77,7 +77,6 @@ public:
void AddChangeListener (const Link<MasterPageContainerChangeEvent&,void>& rLink);
void RemoveChangeListener (const Link<MasterPageContainerChangeEvent&,void>& rLink);
void UpdatePreviewSizePixel();
const Size& GetPreviewSizePixel (PreviewSize eSize) const;
bool HasToken (Token aToken) const;
SharedMasterPageDescriptor GetDescriptor (MasterPageContainer::Token aToken) const;
@@ -230,11 +229,6 @@ void MasterPageContainer::SetPreviewSize (PreviewSize eSize)
NIL_TOKEN);
}
Size const & MasterPageContainer::GetPreviewSizePixel() const
{
return mpImpl->GetPreviewSizePixel(mePreviewSize);
}
MasterPageContainer::Token MasterPageContainer::PutMasterPage (
const std::shared_ptr<MasterPageDescriptor>& rDescriptor)
{
@@ -580,14 +574,6 @@ void MasterPageContainer::Implementation::UpdatePreviewSizePixel()
}
}
const Size& MasterPageContainer::Implementation::GetPreviewSizePixel (PreviewSize eSize) const
{
if (eSize == SMALL)
return maSmallPreviewSizePixel;
else
return maLargePreviewSizePixel;
}
MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage (
const SharedMasterPageDescriptor& rpDescriptor)
{
@@ -76,10 +76,6 @@ public:
*/
PreviewSize GetPreviewSize() const { return mePreviewSize; }
/** Return the preview size in pixels.
*/
Size const& GetPreviewSizePixel() const;
enum PreviewState
{
PS_AVAILABLE,
@@ -57,8 +57,6 @@ public:
virtual void LateInit();
sal_Int32 GetPreferredHeight (sal_Int32 nWidth);
/** Make the selector empty. This method clear the value set from any
entries. Override this method to add functionality, especially to
destroy objects set as data items at the value set.
-18
View File
@@ -107,7 +107,6 @@ public:
void ActivateViewShell (
ViewShell* pViewShell);
void DeactivateViewShell (const ViewShell& rShell);
void ActivateShell (SfxShell& rShell);
void ActivateLowPriorityShell (SfxShell& rShell);
void DeactivateShell (const SfxShell& rShell);
void ActivateShell (const ShellDescriptor& rDescriptor);
@@ -313,12 +312,6 @@ void ViewShellManager::InvalidateAllSubShells (ViewShell const * pViewShell)
mpImpl->InvalidateAllSubShells(pViewShell);
}
void ViewShellManager::ActivateShell (SfxShell* pShell)
{
if (mbValid && pShell!=nullptr)
mpImpl->ActivateShell(*pShell);
}
void ViewShellManager::ActivateLowPriorityShell (SfxShell* pShell)
{
if (mbValid && pShell!=nullptr)
@@ -495,17 +488,6 @@ void ViewShellManager::Implementation::DeactivateViewShell (const ViewShell& rSh
DestroyViewShell(aDescriptor);
}
void ViewShellManager::Implementation::ActivateShell (SfxShell& rShell)
{
::osl::MutexGuard aGuard (maMutex);
// Create a new shell or recycle on in the cache.
ShellDescriptor aDescriptor;
aDescriptor.mpShell = &rShell;
ActivateShell(aDescriptor);
}
void ViewShellManager::Implementation::ActivateLowPriorityShell (SfxShell& rShell)
{
::osl::MutexGuard aGuard (maMutex);
@@ -299,14 +299,6 @@ namespace slideshow::internal
mbLayerAssociationDirty = true;
}
void LayerManager::removeAllShapes()
{
while( !maAllShapes.empty() )
{
removeShape(maAllShapes.begin()->first);
}
}
ShapeSharedPtr LayerManager::lookupShape( const uno::Reference< drawing::XShape >& xShape ) const
{
ENSURE_OR_THROW( xShape.is(), "LayerManager::lookupShape(): invalid Shape" );
@@ -120,12 +120,6 @@ namespace slideshow::internal
*/
bool removeShape( const ShapeSharedPtr& rShape );
/** Remove all shapes from this object
This method removes all shapes from the page.
*/
void removeAllShapes();
/** Lookup a Shape from an XShape model object
This method looks up the internal shape map for one
@@ -109,12 +109,6 @@ Color getColorLight(sal_uInt16 aAuthorIndex)
}
}
AnnotationObject::AnnotationObject(SdrModel& rSdrModel)
: SdrRectObj(rSdrModel)
{
setup();
}
AnnotationObject::AnnotationObject(SdrModel& rSdrModel, AnnotationObject const& rSource)
: SdrRectObj(rSdrModel, rSource)
{
-7
View File
@@ -235,8 +235,6 @@ public:
SwAccessibleParagraph( std::shared_ptr<SwAccessibleMap> const& pInitMap,
const SwTextFrame& rTextFrame );
inline operator css::accessibility::XAccessibleText *();
virtual bool HasCursor() override; // required by map to remember that object
css::uno::Sequence< css::style::TabStop > GetCurrentTabStop( sal_Int32 nIndex );
@@ -374,11 +372,6 @@ public:
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32 nIndex, const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
};
inline SwAccessibleParagraph::operator css::accessibility::XAccessibleText *()
{
return static_cast< css::accessibility::XAccessibleEditableText * >( this );
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@@ -538,8 +538,6 @@ protected:
virtual void setToken(Token_t nToken) override;
virtual Token_t getToken() const override;
bool isWriterFrameDetected() const { return mbIsWriterFrameDetected;}
private:
css::uno::Reference<css::xml::sax::XFastContextHandler> mxWrappedContext;
rtl::Reference<OOXMLFastContextHandlerShape> mxShapeHandler;
-1
View File
@@ -39,7 +39,6 @@ public:
void HideContent() override;
void ShowContent() override;
bool IsHidden() override;
private:
DECL_LINK(PBClickHdl, Button*, void);
-1
View File
@@ -40,7 +40,6 @@ public:
virtual void HideContent() = 0;
virtual void ShowContent() = 0;
virtual bool IsHidden() = 0;
private:
int m_nPriority;
-1
View File
@@ -33,7 +33,6 @@ public:
void HideContent() override;
void ShowContent() override;
bool IsHidden() override;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-2
View File
@@ -65,8 +65,6 @@ void DropdownBox::HideContent()
}
}
bool DropdownBox::IsHidden() { return !m_bInFullView; }
void DropdownBox::ShowContent()
{
if (!m_bInFullView)
-2
View File
@@ -57,6 +57,4 @@ void OptionalBox::ShowContent()
}
}
bool OptionalBox::IsHidden() { return !m_bInFullView; }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-5
View File
@@ -1075,11 +1075,6 @@ bool Window::IsMenuFloatingWindow() const
return mpWindowImpl && mpWindowImpl->mbMenuFloatingWindow;
}
bool Window::IsToolbarFloatingWindow() const
{
return mpWindowImpl && mpWindowImpl->mbToolbarFloatingWindow;
}
bool Window::IsNativeFrame() const
{
if( mpWindowImpl->mbFrame )