diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-24 14:42:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-24 14:42:48 +0100 |
commit | 403b0a8d059de01b7297e1e6083eb41e930d73a7 (patch) | |
tree | 7c8cc1711baaf7352b9f90c6b7d910d832be878e /sw | |
parent | 870bbec1a5e88d47e0bf8b18ad539fff63c080d3 (diff) |
-Werror=unused-parameter
Not sure if this rather radical shrinking of sw::log::Tracer is good, though (or
if the class already has become obsolete anyway)?
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/tracer.cxx | 13 | ||||
-rw-r--r-- | sw/source/filter/ww8/tracer.hxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 15 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 16 |
4 files changed, 1 insertions, 47 deletions
diff --git a/sw/source/filter/ww8/tracer.cxx b/sw/source/filter/ww8/tracer.cxx index a0009b2fad80..0b52a342942b 100644 --- a/sw/source/filter/ww8/tracer.cxx +++ b/sw/source/filter/ww8/tracer.cxx @@ -112,19 +112,6 @@ namespace sw } return sDetails; } - - void Tracer::EnterEnvironment(Environment eContext) - { - } - - void Tracer::EnterEnvironment(Environment eContext, - const rtl::OUString &rDetails) - { - } - - void Tracer::LeaveEnvironment(Environment eContext) - { - } } } diff --git a/sw/source/filter/ww8/tracer.hxx b/sw/source/filter/ww8/tracer.hxx index 60923d5ad493..b51cf069be5c 100644 --- a/sw/source/filter/ww8/tracer.hxx +++ b/sw/source/filter/ww8/tracer.hxx @@ -74,11 +74,7 @@ namespace sw rtl::OUString GetDetails(Environment eContext) const; public: Tracer(const SfxMedium &rMedium); - void EnterEnvironment(Environment eContext); - void EnterEnvironment(Environment eContext, - const rtl::OUString &rDetails); void Log(Problem eProblem); - void LeaveEnvironment(Environment eContext); ~Tracer(); }; } diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 5d2fa423b54a..7b3969780e61 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -1484,7 +1484,6 @@ void SwWW8ImplReader::Read_Tab(sal_uInt16 , const sal_uInt8* pData, short nLen) void SwWW8ImplReader::ImportDop() { - maTracer.EnterEnvironment(sw::log::eDocumentProperties); // correct the LastPrinted date in DocumentInfo uno::Reference<document::XDocumentPropertiesSupplier> xDPS( mpDocShell->GetModel(), uno::UNO_QUERY_THROW); @@ -1615,8 +1614,6 @@ void SwWW8ImplReader::ImportDop() const SvtFilterOptions& rOpt = SvtFilterOptions::Get(); if (rOpt.IsUseEnhancedFields()) rDoc.set(IDocumentSettingAccess::PROTECT_FORM, pWDop->fProtEnabled ); - - maTracer.LeaveEnvironment(sw::log::eDocumentProperties); } void SwWW8ImplReader::ImportDopTypography(const WW8DopTypography &rTypo) @@ -2025,7 +2022,6 @@ void SwWW8ImplReader::Read_HdFt(bool bIsTitle, int nSect, } } } - maTracer.LeaveEnvironment(sw::log::eDocumentProperties); } bool wwSectionManager::SectionIsProtected(const wwSection &rSection) const @@ -3442,13 +3438,6 @@ void SwWW8ImplReader::CloseAttrEnds() bool SwWW8ImplReader::ReadText(long nStartCp, long nTextLen, ManTypes nType) { - sw::log::Environment eContext = sw::log::eMainText; - if (nType == MAN_MAINTEXT) - eContext = sw::log::eMainText; - else - eContext = sw::log::eSubDoc; - maTracer.EnterEnvironment(eContext); - bool bJoined=false; bool bStartLine = true; @@ -3618,7 +3607,6 @@ bool SwWW8ImplReader::ReadText(long nStartCp, long nTextLen, ManTypes nType) CloseAttrEnds(); delete pPlcxMan, pPlcxMan = 0; - maTracer.LeaveEnvironment(eContext); return bJoined; } @@ -4615,7 +4603,6 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss, const SwPosition &rPos) if (mbNewDoc && pStg && !pGloss) /*meaningless for a glossary, cmc*/ { mpDocShell->SetIsTemplate( pWwFib->fDot ); // point at tgc record - maTracer.EnterEnvironment(sw::log::eMacros); uno::Reference< document::XDocumentInfoSupplier > xDocInfoSupp( mpDocShell->GetModel(), uno::UNO_QUERY_THROW ); uno::Reference< document::XDocumentPropertiesSupplier > xDocPropSupp( xDocInfoSupp->getDocumentInfo(), uno::UNO_QUERY_THROW ); uno::Reference< document::XDocumentProperties > xDocProps( xDocPropSupp->getDocumentProperties(), uno::UNO_QUERY_THROW ); @@ -4653,8 +4640,6 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss, const SwPosition &rPos) } StoreMacroCmds(); - - maTracer.LeaveEnvironment(sw::log::eMacros); } ReadText(0, pWwFib->ccpText, MAN_MAINTEXT); diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index adb44728a292..17e1d190d465 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -3508,13 +3508,7 @@ bool SwWW8ImplReader::StartTable(WW8_CP nStartCp) delete pTableWFlyPara; delete pTableSFlyPara; - bool bSuccess = (0 != pTableDesc); - if (bSuccess) - { - maTracer.EnterEnvironment(sw::log::eTable, rtl::OUString::valueOf( - static_cast<sal_Int32>(maTableStack.size()))); - } - return bSuccess; + return 0 != pTableDesc; } void SwWW8ImplReader::TabCellEnd() @@ -3558,8 +3552,6 @@ void SwWW8ImplReader::PopTableDesc() void SwWW8ImplReader::StopTable() { - maTracer.LeaveEnvironment(sw::log::eTable); - OSL_ENSURE(pTableDesc, "Panic, stop table with no table!"); if (!pTableDesc) return; @@ -3571,12 +3563,6 @@ void SwWW8ImplReader::StopTable() pTableDesc->FinishSwTable(); PopTableDesc(); - if (!maTableStack.empty()) - { - maTracer.EnterEnvironment(sw::log::eTable, rtl::OUString::valueOf( - static_cast<sal_Int32>(maTableStack.size()))); - } - bReadTable = true; // #i101116# - Keep PaM on table end only for nested tables if ( nInTable > 1 ) |