summaryrefslogtreecommitdiffstats
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-27 09:32:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-28 08:27:56 +0100
commit3abf4b91dad8fa549457e74185c000e06ba5f019 (patch)
tree55a8c9e0f2f4e2143c431154f789e418003e4c13 /basctl
parentColibre icons: add impress Slide tab icons (diff)
downloadcore-3abf4b91dad8fa549457e74185c000e06ba5f019.tar.gz
core-3abf4b91dad8fa549457e74185c000e06ba5f019.zip
loplugin:unusedmethods
Change-Id: Idbdf2d5d12fad894a3dfc3a86cae839502f42cf6 Reviewed-on: https://gerrit.libreoffice.org/64114 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastype2.cxx25
-rw-r--r--basctl/source/basicide/bastype3.cxx5
-rw-r--r--basctl/source/inc/bastype2.hxx4
3 files changed, 0 insertions, 34 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index ee2caf7ad48a..e75d8674a748 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -620,31 +620,6 @@ bool TreeListBox::ExpandingHdl()
return bOK;
}
-bool TreeListBox::IsEntryProtected( SvTreeListEntry* pEntry )
-{
- bool bProtected = false;
- if ( pEntry && ( GetModel()->GetDepth( pEntry ) == 1 ) )
- {
- EntryDescriptor aDesc( GetEntryDescriptor( pEntry ) );
- const ScriptDocument& aDocument( aDesc.GetDocument() );
- OSL_ENSURE( aDocument.isAlive(), "TreeListBox::IsEntryProtected: no document, or document is dead!" );
- if ( aDocument.isAlive() )
- {
- const OUString& aOULibName( aDesc.GetLibName() );
- Reference< script::XLibraryContainer > xModLibContainer( aDocument.getLibraryContainer( E_SCRIPTS ) );
- if ( xModLibContainer.is() && xModLibContainer->hasByName( aOULibName ) )
- {
- Reference< script::XLibraryContainerPassword > xPasswd( xModLibContainer, UNO_QUERY );
- if ( xPasswd.is() && xPasswd->isLibraryPasswordProtected( aOULibName ) && !xPasswd->isLibraryPasswordVerified( aOULibName ) )
- {
- bProtected = true;
- }
- }
- }
- }
- return bProtected;
-}
-
//Fills up treelist for macros and dialogs
void TreeListBox::FillTreeListBox( SvTreeListEntry* pRootEntry, const Sequence< OUString >& rNames,
const EntryType& eType, const OUString& aBmpMacro )
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
index eeaf863d05cc..90bbcbe44e83 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -787,11 +787,6 @@ bool SbTreeListBox::IsValidEntry(weld::TreeIter& rEntry)
return bIsValid;
}
-SbModule* TreeListBox::FindModule( SvTreeListEntry* pEntry )
-{
- return dynamic_cast<SbModule*>(FindVariable(pEntry));
-}
-
SbModule* SbTreeListBox::FindModule(weld::TreeIter* pEntry)
{
return dynamic_cast<SbModule*>(FindVariable(pEntry));
diff --git a/basctl/source/inc/bastype2.hxx b/basctl/source/inc/bastype2.hxx
index 7115e6f2f589..9f6e1c4753c4 100644
--- a/basctl/source/inc/bastype2.hxx
+++ b/basctl/source/inc/bastype2.hxx
@@ -218,12 +218,9 @@ public:
void ScanAllEntries();
void UpdateEntries();
- bool IsEntryProtected( SvTreeListEntry* pEntry );
-
void SetMode( BrowseMode nM ) { nMode = nM; }
BrowseMode GetMode() const { return nMode; }
- SbModule* FindModule( SvTreeListEntry* pEntry );
SbxVariable* FindVariable( SvTreeListEntry* pEntry );
SvTreeListEntry* FindRootEntry( const ScriptDocument& rDocument, LibraryLocation eLocation );
SvTreeListEntry* FindEntry( SvTreeListEntry* pParent, const OUString& rText, EntryType eType );
@@ -318,7 +315,6 @@ public:
bool iter_children(weld::TreeIter& rIter) const { return m_xControl->iter_children(rIter); }
bool iter_parent(weld::TreeIter& rIter) const { return m_xControl->iter_parent(rIter); }
int get_iter_depth(const weld::TreeIter& rIter) const { return m_xControl->get_iter_depth(rIter); }
- OUString get_text(const weld::TreeIter& rIter) const { return m_xControl->get_text(rIter); }
bool get_row_expanded(const weld::TreeIter& rIter) const { return m_xControl->get_row_expanded(rIter); }
void expand_row(weld::TreeIter& rIter) { m_xControl->expand_row(rIter); }
void set_size_request(int nWidth, int nHeight) { m_xControl->set_size_request(nWidth, nHeight); }