diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2017-12-07 22:24:12 -0500 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2017-12-18 03:31:30 +0100 |
commit | 7d4eeddda861dcd5a60689aca73f658bf6e6b528 (patch) | |
tree | fcb14894b06022f0c32788443bb9ea58f29de800 | |
parent | 599a23b17818bbeea85b6ab0b57401e4ff2cd5c0 (diff) |
Remove unused method.
Change-Id: Idc7919f04898b0298d6448d2dd84222b211cf5db
Reviewed-on: https://gerrit.libreoffice.org/46659
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r-- | sc/inc/document.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/document.cxx | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 3096dc7aa5df..5c1b93763d1c 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -870,7 +870,6 @@ public: bool bNamesValid = false ); SC_DLLPUBLIC bool DeleteTabs( SCTAB nTab, SCTAB nSheets ); SC_DLLPUBLIC bool DeleteTab( SCTAB nTab ); - SC_DLLPUBLIC void ClearTabs(); SC_DLLPUBLIC bool RenameTab( SCTAB nTab, const OUString& rName, bool bExternalDocument = false ); bool MoveTab( SCTAB nOldPos, SCTAB nNewPos, ScProgress* pProgress = nullptr ); diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index bc971f1b1c8f..f81fbeb1ecf6 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -783,15 +783,6 @@ bool ScDocument::DeleteTab( SCTAB nTab ) return bValid; } -void ScDocument::ClearTabs() -{ - for (auto& it: maTabs) - { - delete it; - } - maTabs.clear(); -} - bool ScDocument::DeleteTabs( SCTAB nTab, SCTAB nSheets ) { bool bValid = false; |