Kaydet (Commit) a8520074 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: I1f9ac5f8a090f365d9a21486029e1c13d721a4a4
Reviewed-on: https://gerrit.libreoffice.org/62338
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d90ec5d2
...@@ -124,13 +124,6 @@ sal_Int32 MQueryHelper::getResultCount() const ...@@ -124,13 +124,6 @@ sal_Int32 MQueryHelper::getResultCount() const
return result; return result;
} }
bool MQueryHelper::checkRowAvailable( sal_Int32 nDBRow )
{
return getResultCount() > nDBRow;
}
bool MQueryHelper::getRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBColumnName, sal_Int32 nType ) bool MQueryHelper::getRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBColumnName, sal_Int32 nType )
{ {
MQueryHelperResultEntry* pResEntry = getByIndex( nDBRow ); MQueryHelperResultEntry* pResEntry = getByIndex( nDBRow );
......
...@@ -168,7 +168,6 @@ namespace connectivity ...@@ -168,7 +168,6 @@ namespace connectivity
void reset(); void reset();
MQueryHelperResultEntry* getByIndex( sal_uInt32 nRow ); MQueryHelperResultEntry* getByIndex( sal_uInt32 nRow );
sal_Int32 getResultCount() const; sal_Int32 getResultCount() const;
bool checkRowAvailable( sal_Int32 nDBRow );
bool getRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBColumnName, sal_Int32 nType ); bool getRowValue( ORowSetValue& rValue, sal_Int32 nDBRow,const OUString& aDBColumnName, sal_Int32 nType );
sal_Int32 executeQuery(OConnection* xConnection, MQueryExpression & expr); sal_Int32 executeQuery(OConnection* xConnection, MQueryExpression & expr);
const OColumnAlias& getColumnAlias() const { return m_rColumnAlias; } const OColumnAlias& getColumnAlias() const { return m_rColumnAlias; }
......
...@@ -64,7 +64,6 @@ public: ...@@ -64,7 +64,6 @@ public:
*/ */
void GrabFocus(); void GrabFocus();
void GrabFocusPanel(); void GrabFocusPanel();
void GrabFocusButton(const sal_Int32 nIndex);
void SetDeckTitle(DeckTitleBar* pDeckTitleBar); void SetDeckTitle(DeckTitleBar* pDeckTitleBar);
void SetPanels(const SharedPanelContainer& rPanels); void SetPanels(const SharedPanelContainer& rPanels);
......
...@@ -140,9 +140,6 @@ public: ...@@ -140,9 +140,6 @@ public:
CreateTabPage pCreateFunc, // != 0 CreateTabPage pCreateFunc, // != 0
sal_uInt16 nPos = TAB_APPEND); sal_uInt16 nPos = TAB_APPEND);
void AddTabPage( sal_uInt16 nId,
const OUString &rRiderText);
void RemoveTabPage( const OString& rName ); // Name of the label for the page in the notebook .ui void RemoveTabPage( const OString& rName ); // Name of the label for the page in the notebook .ui
void RemoveTabPage( sal_uInt16 nId ); void RemoveTabPage( sal_uInt16 nId );
......
...@@ -138,10 +138,6 @@ namespace svt ...@@ -138,10 +138,6 @@ namespace svt
ControlDependencyManager(); ControlDependencyManager();
~ControlDependencyManager(); ~ControlDependencyManager();
/** clears all dialog controllers previously added to the manager
*/
void clear();
/** ensures that a given window is enabled or disabled, according to the check state /** ensures that a given window is enabled or disabled, according to the check state
of a given radio button of a given radio button
@param _rRadio @param _rRadio
...@@ -258,13 +254,6 @@ namespace svt ...@@ -258,13 +254,6 @@ namespace svt
PWindowOperator( new EnableOnCheck< RadioButton >( _rButton ) ) ) PWindowOperator( new EnableOnCheck< RadioButton >( _rButton ) ) )
{ {
} }
RadioDependentEnabler( CheckBox& _rBox )
:DialogController( _rBox,
PWindowEventFilter( new FilterForRadioOrCheckToggle( _rBox ) ),
PWindowOperator( new EnableOnCheck< CheckBox >( _rBox ) ) )
{
}
}; };
......
...@@ -643,11 +643,6 @@ void SfxTabDialog::Start_Impl() ...@@ -643,11 +643,6 @@ void SfxTabDialog::Start_Impl()
ActivatePageHdl( m_pTabCtrl ); ActivatePageHdl( m_pTabCtrl );
} }
void SfxTabDialog::AddTabPage( sal_uInt16 nId, const OUString &rRiderText )
{
AddTabPage( nId, rRiderText, nullptr );
}
/* /*
Adds a page to the dialog. The Name must correspond to a entry in the Adds a page to the dialog. The Name must correspond to a entry in the
TabControl in the dialog .ui TabControl in the dialog .ui
......
...@@ -63,16 +63,6 @@ void FocusManager::GrabFocusPanel() ...@@ -63,16 +63,6 @@ void FocusManager::GrabFocusPanel()
FocusPanel(0, false); FocusPanel(0, false);
} }
void FocusManager::GrabFocusButton(const sal_Int32 nIndex)
{
if (static_cast<size_t>(nIndex) >= maButtons.size())
{
SAL_WARN("sfx.sidebar", "invalid focus index, probably during teardown");
return;
}
FocusButton(nIndex);
}
void FocusManager::Clear() void FocusManager::Clear()
{ {
SetDeckTitle(nullptr); SetDeckTitle(nullptr);
......
...@@ -138,25 +138,6 @@ namespace svt ...@@ -138,25 +138,6 @@ namespace svt
} }
namespace
{
struct ResetDialogController
{
void operator()( const std::shared_ptr<DialogController>& _pController )
{
_pController->reset();
}
};
}
void ControlDependencyManager::clear()
{
::std::for_each( m_pImpl->aControllers.begin(), m_pImpl->aControllers.end(), ResetDialogController() );
m_pImpl->aControllers.clear();
}
void ControlDependencyManager::addController( const std::shared_ptr<DialogController>& _pController ) void ControlDependencyManager::addController( const std::shared_ptr<DialogController>& _pController )
{ {
OSL_ENSURE(_pController != nullptr, "ControlDependencyManager::addController: invalid " OSL_ENSURE(_pController != nullptr, "ControlDependencyManager::addController: invalid "
......
...@@ -63,7 +63,6 @@ public: // TODO: make data members private ...@@ -63,7 +63,6 @@ public: // TODO: make data members private
inline hb_font_t* GetHbFont(); inline hb_font_t* GetHbFont();
void SetAverageWidthFactor(double nFactor) { m_nAveWidthFactor = nFactor; } void SetAverageWidthFactor(double nFactor) { m_nAveWidthFactor = nFactor; }
void SetNonAntialiased(bool bNonAntialiased);
double GetAverageWidthFactor() const { return m_nAveWidthFactor; } double GetAverageWidthFactor() const { return m_nAveWidthFactor; }
const FontSelectPattern& GetFontSelectPattern() const { return m_aFontSelData; } const FontSelectPattern& GetFontSelectPattern() const { return m_aFontSelData; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment