diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-02-06 14:47:47 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-02-27 15:40:16 +0100 |
commit | 875c997c7da116402509d0bd75e8c15a66a40529 (patch) | |
tree | 9f6234505873cb9a4d13bf150a6483e71eb11aed /writerfilter/source | |
parent | 408d5d92ee262c1d06109b190968d56c0c52c378 (diff) |
fdo#39446 - Bloat Removal. Removing uncallable code with callcatcher
Removed several unused methods.
Could not remove ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() and ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) because it breaks compilation (they are implementing pure virtual methods).
Should Test::test1Table1Page() really be removed? (test class)
Conflicts:
unusedcode.easy
Change-Id: I98a761f66f28e3a82661c10a5fa1dc7e109fff2f
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/resourcemodel/util.cxx | 20 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfsprm.cxx | 7 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfsprm.hxx | 1 |
3 files changed, 0 insertions, 28 deletions
diff --git a/writerfilter/source/resourcemodel/util.cxx b/writerfilter/source/resourcemodel/util.cxx index ecb338f6adac..4ca436510d27 100644 --- a/writerfilter/source/resourcemodel/util.cxx +++ b/writerfilter/source/resourcemodel/util.cxx @@ -35,26 +35,6 @@ namespace writerfilter { using namespace com::sun::star; using namespace std; -using text::TextContentAnchorType; - -static string & logger_file() -{ - static string _logger_file = string(getenv("TEMP")?getenv("TEMP"):"/tmp") + "/writerfilter.ooxml.tmp"; - return _logger_file; -} - -static ofstream & logger_stream() -{ - static ofstream _logger_stream(logger_file().c_str()); - return _logger_stream; -} - - -void logger(string prefix, string message) -{ - logger_stream() << prefix << ":" << message << endl; - logger_stream().flush(); -} string xmlify(const string & str) { diff --git a/writerfilter/source/rtftok/rtfsprm.cxx b/writerfilter/source/rtftok/rtfsprm.cxx index ed25dafe490f..1c3c5a517f68 100644 --- a/writerfilter/source/rtftok/rtfsprm.cxx +++ b/writerfilter/source/rtftok/rtfsprm.cxx @@ -192,13 +192,6 @@ RTFSprms& RTFSprms::operator=(const RTFSprms& rOther) return *this; } -void RTFSprms::swap(RTFSprms& rOther) -{ - boost::intrusive_ptr<RTFSprmsImpl> pTmp = rOther.m_pSprms; - rOther.m_pSprms = m_pSprms; - m_pSprms = pTmp; -} - void RTFSprms::clear() { if (m_pSprms->m_nRefCount == 1) diff --git a/writerfilter/source/rtftok/rtfsprm.hxx b/writerfilter/source/rtftok/rtfsprm.hxx index 58955c4cd339..1ae83dc57dfb 100644 --- a/writerfilter/source/rtftok/rtfsprm.hxx +++ b/writerfilter/source/rtftok/rtfsprm.hxx @@ -71,7 +71,6 @@ namespace writerfilter { bool erase(Id nKeyword); /// Removes elements, which are already in the reference set. void deduplicate(RTFSprms& rReference); - void swap(RTFSprms& rOther); size_t size() const { return m_pSprms->size(); } bool empty() const { return m_pSprms->empty(); } Entry_t& back() { return m_pSprms->back(); } |