diff options
author | Andras Timar <atimar@suse.com> | 2011-09-30 11:37:44 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-09-30 23:49:36 +0200 |
commit | 397a67a7ad8a31f352714099b57a6e0e8eb30434 (patch) | |
tree | cbf062cbf905101b925878f5f1820bd0d889a6b6 | |
parent | ddf1d503c63d36fe14d5229afdc264a2bc558350 (diff) |
remove unused tokens
-rw-r--r-- | l10ntools/inc/tokens.h | 8 | ||||
-rw-r--r-- | l10ntools/source/xrmmerge.cxx | 50 |
2 files changed, 0 insertions, 58 deletions
diff --git a/l10ntools/inc/tokens.h b/l10ntools/inc/tokens.h index b8c658ee0c14..3068c6fd8339 100644 --- a/l10ntools/inc/tokens.h +++ b/l10ntools/inc/tokens.h @@ -94,16 +94,8 @@ /* Tokens for parsing xrm files */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ -#define XRM_README_START 501 -#define XRM_README_END 502 -#define XRM_SECTION_START 503 -#define XRM_SECTION_END 504 -#define XRM_PARAGRAPH_START 505 -#define XRM_PARAGRAPH_END 506 #define XRM_TEXT_START 507 #define XRM_TEXT_END 508 -#define XRM_LIST_START 509 -#define XRM_LIST_END 510 #define XML_TEXTCHAR 600 diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx index 36e888db19c0..a17ecf2c34a6 100644 --- a/l10ntools/source/xrmmerge.cxx +++ b/l10ntools/source/xrmmerge.cxx @@ -295,47 +295,6 @@ int XRMResParser::Execute( int nToken, char * pToken ) ByteString rToken( pToken ); switch ( nToken ) { - case XRM_README_START: - sLID = ""; - sGID = GetAttribute( rToken, "name" ); - break; - - case XRM_README_END: - sGID = ""; - break; - - case XRM_SECTION_START: - sLID = ""; - sGID += "."; - sGID += GetAttribute( rToken, "id" ); - sLocalized = true; - break; - - case XRM_SECTION_END: - sGID = sGID.GetToken( 0, '.' ); - break; - - case XRM_PARAGRAPH_START: - sLID = ""; - sGID += "."; - sGID += GetAttribute( rToken, "id" ); - sLocalized = true; - break; - - case XRM_PARAGRAPH_END: { - if ( sLID.Len()) - EndOfText( sCurrentOpenTag, sCurrentCloseTag ); - ByteString sTmp = sGID; - sGID = ""; - for ( sal_uInt16 i = 0; i + 1 < sTmp.GetTokenCount( '.' ); i++ ) { - if ( sGID.Len()) - sGID += "."; - sGID += sTmp.GetToken( i, '.' ); - } - //sLocalized = sLocalized.Copy( 0, sLocalized.Len() - 1 ); - } - break; - case XRM_TEXT_START:{ //printf("->XRM_TEXT_START\n"); ByteString sNewLID = GetAttribute( rToken, "id" ); @@ -365,15 +324,6 @@ int XRMResParser::Execute( int nToken, char * pToken ) } break; - case XRM_LIST_START: - sLID = ""; - break; - - case XRM_LIST_END: - if ( sLID.Len()) - EndOfText( sCurrentOpenTag, sCurrentCloseTag ); - break; - default: if ( bText ) { sCurrentText += rToken; |