diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-14 11:58:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-14 15:40:52 +0100 |
commit | 5e8bc7bda667e994cfbdf9bf4d981175dff71bae (patch) | |
tree | d32ba83233a00929259ac1d5dc69e1bdb86299b0 /sc | |
parent | f0481649c526e2ad934482487c2dc7fae49c8031 (diff) |
loplugin:unusedfields
Change-Id: I5869e9974c37b1b525d316367f1dc5051d8aa197
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159404
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformateasydlg.cxx | 20 | ||||
-rw-r--r-- | sc/source/ui/inc/condformateasydlg.hxx | 1 |
2 files changed, 0 insertions, 21 deletions
diff --git a/sc/source/ui/condformat/condformateasydlg.cxx b/sc/source/ui/condformat/condformateasydlg.cxx index 6ecf98e87e21..a368ec310c7d 100644 --- a/sc/source/ui/condformat/condformateasydlg.cxx +++ b/sc/source/ui/condformat/condformateasydlg.cxx @@ -31,22 +31,6 @@ void UpdateStyleList(const ScDocument* pDocument, weld::ComboBox& rCombo) FillStyleListBox(pDocument, rCombo); rCombo.set_active_text(sSelectedStyle); } - -ScTabViewShell* GetTabViewShell(const SfxBindings* pBindings) -{ - if (!pBindings) - return nullptr; - SfxDispatcher* pDispacher = pBindings->GetDispatcher(); - if (!pDispacher) - return nullptr; - SfxViewFrame* pFrame = pDispacher->GetFrame(); - if (!pFrame) - return nullptr; - SfxViewShell* pViewShell = pFrame->GetViewShell(); - if (!pViewShell) - return nullptr; - return dynamic_cast<ScTabViewShell*>(pViewShell); -} } namespace sc @@ -74,10 +58,6 @@ ConditionalFormatEasyDialog::ConditionalFormatEasyDialog(SfxBindings* pBindings, , mxButtonCancel(m_xBuilder->weld_button("cancel")) { mxButtonRangeEdit->SetReferences(this, mxRangeEntry.get()); - mpTabViewShell = GetTabViewShell(pBindings); - if (!mpTabViewShell) - mpTabViewShell = dynamic_cast<ScTabViewShell*>(SfxViewShell::Current()); - OSL_ENSURE(mpTabViewShell, "Missing view shell!"); const ScConditionMode* pCurrentMode = pViewData->GetDocument().GetEasyConditionalFormatDialogData(); if (!pCurrentMode) diff --git a/sc/source/ui/inc/condformateasydlg.hxx b/sc/source/ui/inc/condformateasydlg.hxx index 6d6af1041b49..4ecf720decfc 100644 --- a/sc/source/ui/inc/condformateasydlg.hxx +++ b/sc/source/ui/inc/condformateasydlg.hxx @@ -40,7 +40,6 @@ private: ScDocument* mpDocument; ScConditionMode meMode; ScAddress maPosition; - ScTabViewShell* mpTabViewShell; std::unique_ptr<weld::Entry> mxNumberEntry; std::unique_ptr<weld::Entry> mxNumberEntry2; |