diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-03-05 23:15:22 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-03-05 23:38:22 +0900 |
commit | e2fbf6391c8ce185d875bf36075e5b2de67cff79 (patch) | |
tree | f332a8ff7e97df51a907df7cc125c7710ce6cd44 /l10ntools | |
parent | 2255dd4e633613cff51f4075d54abeb59e6f5d0a (diff) |
Remove dead code
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/helpex.cxx | 1 | ||||
-rw-r--r-- | l10ntools/source/helpmerge.cxx | 9 | ||||
-rw-r--r-- | l10ntools/source/lngex.cxx | 9 | ||||
-rw-r--r-- | l10ntools/source/localize.cxx | 1 | ||||
-rw-r--r-- | l10ntools/source/merge.cxx | 10 | ||||
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 6 | ||||
-rw-r--r-- | l10ntools/source/xrmmerge.cxx | 18 |
7 files changed, 0 insertions, 54 deletions
diff --git a/l10ntools/source/helpex.cxx b/l10ntools/source/helpex.cxx index abe5acd41024..2c73d36bd4cf 100644 --- a/l10ntools/source/helpex.cxx +++ b/l10ntools/source/helpex.cxx @@ -146,7 +146,6 @@ BOOL ParseCommandLine( int argc, char* argv[]) break; case STATE_PRJ: { sPrj = argv[ i ]; -// sPrj.ToLowerAscii(); // the project } break; case STATE_ROOT: { diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx index 66805fd69eb3..03e303e1b8b1 100644 --- a/l10ntools/source/helpmerge.cxx +++ b/l10ntools/source/helpmerge.cxx @@ -164,7 +164,6 @@ bool HelpParser::CreateSDF( if(file.get() == NULL){ printf("%s\n",ByteString(aParser.GetError().sMessage,RTL_TEXTENCODING_ASCII_US).GetBuffer()); exit(-1); - //return false; } file->Extract(); if( !file->CheckExportStatus() ){ @@ -184,8 +183,6 @@ bool HelpParser::CreateSDF( LangHashMap* pElem; XMLElement* pXMLElement = NULL; - //Dump(aXMLStrHM); - ByteString sTimeStamp( Export::GetTimeStamp() ); OUString sOUTimeStamp( sTimeStamp.GetBuffer() , sTimeStamp.Len() , RTL_TEXTENCODING_ASCII_US ); @@ -243,16 +240,12 @@ bool HelpParser::CreateSDF( sBuffer.append( GSI_SEQUENCE4 ); //"\t\t\t\t"; sBuffer.append( sOUTimeStamp ); ByteString sOut( sBuffer.makeStringAndClear().getStr() , RTL_TEXTENCODING_UTF8 ); - //if( !sCur.EqualsIgnoreCaseAscii("de") ||( sCur.EqualsIgnoreCaseAscii("de") && !Export::isMergingGermanAllowed( rPrj_in ) ) ) - //{ if( data.getLength() > 0 ) aSDFStream.WriteLine( sOut ); - //} pXMLElement=NULL; }else fprintf(stdout,"\nDBG: NullPointer in HelpParser::CreateSDF , Language %s\n",sCur.GetBuffer() ); } } - //Dump(aXMLStrHM); aSDFStream.Close(); if( !sUsedTempFile.EqualsIgnoreCaseAscii( "" ) ){ @@ -397,7 +390,6 @@ bool HelpParser::Merge( { printf("%s\n",ByteString(aParser.GetError().sMessage,RTL_TEXTENCODING_UTF8).GetBuffer()); exit(-1); - //return false; } @@ -489,7 +481,6 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile return false; } } - //remove( sTargetFile.GetBuffer() ); FileStat aFSTest( aTar ); if( aFSTest.GetSize() < 1 ) diff --git a/l10ntools/source/lngex.cxx b/l10ntools/source/lngex.cxx index cc37c2f553ba..4efcc4c54525 100644 --- a/l10ntools/source/lngex.cxx +++ b/l10ntools/source/lngex.cxx @@ -102,14 +102,6 @@ BOOL ParseCommandLine( int argc, char* argv[]) nState = STATE_UTF8; bUTF8 = TRUE; } -/* else if ( sSwitch == "-NOUTF8" ) { - nState = STATE_UTF8; - bUTF8 = FALSE; - }*/ -/* else if ( sSwitch == "-ULF" ) { - nState = STATE_ULF; - bULF = TRUE; - }*/ else if ( sSwitch == "-L" ) { nState = STATE_LANGUAGES; } @@ -130,7 +122,6 @@ BOOL ParseCommandLine( int argc, char* argv[]) break; case STATE_PRJ: { sPrj = argv[ i ]; -// sPrj.ToLowerAscii(); // the project } break; case STATE_ROOT: { diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index 1d7836ac67a3..94c06e626e8f 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -761,7 +761,6 @@ BOOL SourceTreeLocalizer::Merge( const ByteString &rSourceFile , const ByteStrin BOOL bReturn = aSDF.IsOpen(); if ( bReturn ) { bReturn = ExecuteMerge(); -// aSDF.Close(); } aSDF.Close(); nMode = LOCALIZE_NONE; diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index b85a75461926..e828f12343f8 100644 --- a/l10ntools/source/merge.cxx +++ b/l10ntools/source/merge.cxx @@ -205,7 +205,6 @@ BOOL MergeData::operator==( ResData *pData ) /*****************************************************************************/ MergeDataFile::MergeDataFile( const ByteString &rFileName, const ByteString& sFile ,BOOL bErrLog, -// CharSet aCharSet, BOOL bUTF8 , bool bCaseSensitive ) CharSet aCharSet, bool bCaseSensitive ) /*****************************************************************************/ @@ -230,7 +229,6 @@ MergeDataFile::MergeDataFile( const ByteString &rFileName, const ByteString& sFi if( !aInputStream.IsOpen() ) { printf("Warning : Can't open %s\n", rFileName.GetBuffer()); - //exit( -1 ); return; } while ( !aInputStream.IsEof()) { @@ -292,13 +290,6 @@ MergeDataFile::~MergeDataFile() { } -/*****************************************************************************/ -//void MergeDataFile::WriteErrorLog( const ByteString &rFileName ) -/*****************************************************************************/ -//{ -// DEAD -//} - ByteString MergeDataFile::Dump(){ ByteString sRet( "MergeDataFile\n" ); @@ -362,7 +353,6 @@ MergeData *MergeDataFile::GetMergeData( ResData *pResData , bool bCaseSensitive //printf("DBG: Found[%s]\n",sKey.GetBuffer()); return aMap[ sKey ]; } - //Dump(); pResData->sGId = sOldG; pResData->sId = sOldL; //printf("DBG: Found[%s]\n",sKey.GetBuffer()); diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 3f0981aae524..bb921b4a7fc5 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -1341,8 +1341,6 @@ void XMLUtil::QuotHTML( String &rString ) case '>': sReturn.append( GT );i++;break; case '\\': sReturn.append( QUOT );i++;break; case '\"': sReturn.append( APOS );i++;break; - //case '\'': sReturn += "\'";i++;break; - //case '&' : sRetrun += "&";i++;break; default: sReturn.append( SLASH );break; } @@ -1361,10 +1359,6 @@ void XMLUtil::QuotHTML( String &rString ) sReturn.append( QQUOT ); break; -/* case '\'': - sReturn += "'"; - break; -*/ case '&': if ( ( ( i + 4 ) < rString.Len()) && diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx index d62eacb05578..513d0f088874 100644 --- a/l10ntools/source/xrmmerge.cxx +++ b/l10ntools/source/xrmmerge.cxx @@ -322,9 +322,6 @@ int XRMResParser::Execute( int nToken, char * pToken ) sLID = ""; sGID += "."; sGID += GetAttribute( rToken, "id" ); - //sLocalized = "1"; - - //sLocalized = "X:"; sLocalized = true; break; @@ -336,11 +333,6 @@ int XRMResParser::Execute( int nToken, char * pToken ) sLID = ""; sGID += "."; sGID += GetAttribute( rToken, "id" ); -// if ( GetAttribute( rToken, "localized" ) == "false" ) -// sLocalized += "0"; -// sLocalized = false; -// else -// sLocalized += "1"; sLocalized = true; break; @@ -446,9 +438,7 @@ void XRMResParser::ConvertStringToDBFormat( ByteString &rString ) do { sResult = rString; rString.EraseLeadingChars( _LF ); - // rString.EraseLeadingChars( ' ' ); rString.EraseLeadingChars( '\t' ); - // rString.EraseTrailingChars( ' ' ); rString.EraseTrailingChars( '\t' ); } while ( sResult != rString ); @@ -563,9 +553,6 @@ void XRMResExport::EndOfText( char cSearch = 0x00; ByteString sSearch( cSearch ); - // if ( !pResData->sText[ ByteString("en-US") ].Len() ) - // pResData->sText[ ByteString("en-US") ] = pResData->sText[ ByteString("de") ]; - Export::FillInFallbacks( pResData ); ByteString sTimeStamp( Export::GetTimeStamp()); @@ -574,7 +561,6 @@ void XRMResExport::EndOfText( sCur = aLanguages[ n ]; ByteString sAct = pResData->sText[ sCur ]; - //Export::UnquotHTML( sAct ); sAct.EraseAllChars( 0x0A ); ByteString sOutput( sPrj ); sOutput += "\t"; @@ -594,7 +580,6 @@ void XRMResExport::EndOfText( sOutput += sTimeStamp; sOutput.SearchAndReplaceAll( sSearch, "_" ); - //if( !sCur.EqualsIgnoreCaseAscii("de") ||( sCur.EqualsIgnoreCaseAscii("de") && !Export::isMergingGermanAllowed( sPrj ) ) ) if( sAct.Len() > 1 ) pOutputStream->WriteLine( sOutput ); } @@ -647,7 +632,6 @@ void XRMResMerge::WorkOnText( if ( pMergeDataFile ) { if ( !pResData ) { ByteString sPlatform( "" ); -// pResData = new ResData( sPlatform, GetGID() , sFilename ); pResData = new ResData( sPlatform, GetLID() , sFilename ); pResData->sId = GetLID(); @@ -702,8 +686,6 @@ void XRMResMerge::EndOfText( ( sContent != "-" ) && ( sContent.Len())) { ByteString sText( sContent ); - //Export::QuotHTMLXRM( sText ); - ByteString sAdditionalLine( "\t" ); sAdditionalLine += rOpenTag; ByteString sSearch = "xml:lang=\""; |