summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2013-04-07 21:33:17 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-08 08:44:49 +0000
commit0a3fc0130166629209e98bea178905085098a8f2 (patch)
treeb1ed04bd1550893d340f02863ba1dcee463c452c
parentmore work on comments in sw/source/core/doc (diff)
downloadcore-0a3fc0130166629209e98bea178905085098a8f2.tar.gz
core-0a3fc0130166629209e98bea178905085098a8f2.zip
remove code that was commented out many years ago
Change-Id: I45292b157b5ea278ec9e0d9a18bf185276ba78c1 Reviewed-on: https://gerrit.libreoffice.org/3264 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
-rw-r--r--sw/source/core/doc/doc.cxx4
-rw-r--r--sw/source/core/doc/doccomp.cxx2
-rw-r--r--sw/source/core/doc/docfld.cxx6
3 files changed, 0 insertions, 12 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 084289f43496..1ec553dd4650 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -2023,15 +2023,11 @@ static bool lcl_SpellAndGrammarAgain( const SwNodePtr& rpNd, void* pArgs )
static bool lcl_CheckSmartTagsAgain( const SwNodePtr& rpNd, void* )
{
SwTxtNode *pTxtNode = (SwTxtNode*)rpNd->GetTxtNode();
-// sal_Bool bOnlyWrong = *(sal_Bool*)pArgs;
if( pTxtNode )
{
pTxtNode->SetSmartTagDirty( true );
if( pTxtNode->GetSmartTags() )
{
-// if ( bOnlyWrong ) // only some smart tag types have been enabled or disabled
-// pTxtNode->GetSmartTags()->SetInvalid( 0, STRING_LEN );
-// else // smart tags all have been enabled or disabled
pTxtNode->SetSmartTags( NULL );
}
}
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index c1f753abbf41..676a9371711e 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -1154,7 +1154,6 @@ bool SwCompareLine::CompareNode( const SwNode& rDstNd, const SwNode& rSrcNd )
&& pSrcTOX->GetType() == pDstTOX->GetType()
&& pSrcTOX->GetTitle() == pDstTOX->GetTitle()
&& pSrcTOX->GetTypeName() == pDstTOX->GetTypeName()
-// && pSrcTOX->GetTOXName() == pDstTOX->GetTOXName()
;
}
break;
@@ -1222,7 +1221,6 @@ String SwCompareLine::GetText() const
if( pTOX )
sRet.Append( pTOX->GetTitle() )
.Append( pTOX->GetTypeName() )
-// .Append( pTOX->GetTOXName() )
.Append( OUString::number( pTOX->GetType() ));
}
break;
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 48bec3c49a10..65222e7ee41d 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -1362,12 +1362,6 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
const String& rName = pFld->GetTyp()->GetName();
- // Set value for Calculator
-//JP 10.02.96: GetValue doesn't make sense here
-// ((SwDBField*)pFld)->GetValue();
-
-//!OK aCalc.VarChange(aName, ((SwDBField*)pFld)->GetValue(aCalc));
-
// Add entry to hash table
// Entry present?
sal_uInt16 nPos;