From f6d97d00cd0c8d710bce614f7e557db2bc6d2f77 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 27 Feb 2014 16:30:49 +0200 Subject: [PATCH] remove unused code in basic/CodeCompleteDataCache Specifically: CodeCompleteDataCache::GetVars() const CodeCompleteDataCache::SetVars(boost::unordered_map const&) CodeCompleteDataCache::print() const Change-Id: I59fb6f50ff47747c3cac959302bf6b7c4f4d79d3 --- basic/source/classes/codecompletecache.cxx | 15 --------------- include/basic/codecompletecache.hxx | 4 ---- unusedcode.easy | 3 --- 3 files changed, 22 deletions(-) diff --git a/basic/source/classes/codecompletecache.cxx b/basic/source/classes/codecompletecache.cxx index aad0e4fcd622..4c973107b0db 100644 --- a/basic/source/classes/codecompletecache.cxx +++ b/basic/source/classes/codecompletecache.cxx @@ -118,21 +118,6 @@ std::ostream& operator<< (std::ostream& aStream, const CodeCompleteDataCache& aC return aStream; } -const CodeCompleteVarScopes& CodeCompleteDataCache::GetVars() const -{ - return aVarScopes; -} - -void CodeCompleteDataCache::SetVars( const CodeCompleteVarScopes& aScopes ) -{ - aVarScopes = aScopes; -} - -void CodeCompleteDataCache::print() const -{ - std::cerr << *this << std::endl; -} - void CodeCompleteDataCache::Clear() { aVarScopes.clear(); diff --git a/include/basic/codecompletecache.hxx b/include/basic/codecompletecache.hxx index f33914a7e122..3721b9692f94 100644 --- a/include/basic/codecompletecache.hxx +++ b/include/basic/codecompletecache.hxx @@ -87,14 +87,10 @@ public: friend BASIC_DLLPUBLIC std::ostream& operator<< (std::ostream& aStream, const CodeCompleteDataCache& aCache); - void SetVars( const CodeCompleteVarScopes& aScopes ); - const CodeCompleteVarScopes& GetVars() const; - void InsertGlobalVar( const OUString& sVarName, const OUString& sVarType ); void InsertLocalVar( const OUString& sProcName, const OUString& sVarName, const OUString& sVarType ); OUString GetVarType( const OUString& sVarName ) const; OUString GetCorrectCaseVarName( const OUString& sVarName, const OUString& sActProcName ) const; - void print() const; // wrapper for operator<<, prints to std::cerr void Clear(); }; diff --git a/unusedcode.easy b/unusedcode.easy index 934e94f48ae2..b25c7165b91f 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -3,9 +3,6 @@ BigInt::BigInt(unsigned int) BigInt::GetString() const CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&) Chart2ExportTest::testFdo74115WallGradientFill() -CodeCompleteDataCache::GetVars() const -CodeCompleteDataCache::SetVars(boost::unordered::unordered_map, std::allocator > >, rtl::OUStringHash, std::equal_to, std::allocator, std::allocator > > > > > const&) -CodeCompleteDataCache::print() const ComboBox::GetMRUCount() const ConfigurationAccess::getPath(rtl::OUString const&) DocxSdrExport::getFlyFrameGraphic()