summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-16 10:00:15 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-16 15:40:43 +0200
commitf2e263704376d36d78087b72753c88b6dbc6a833 (patch)
treeb6583cafd150f85a3f9239966cad41de3d5cd2d0 /l10ntools
parentc726ee7d9d1c3ab49a1a0f4c07a951cb758822c3 (diff)
remove unused code
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/xmlparse.hxx22
-rw-r--r--l10ntools/source/xmlparse.cxx40
2 files changed, 3 insertions, 59 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 9f67e7343633..70fe9018eb7c 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -270,31 +270,9 @@ public:
/// UnQuot the XML characters and restore \n \t
static void UnQuotHTML ( String &rString );
-
- /// Return the numeric iso language code
- //sal_uInt16 GetLangByIsoLang( const ByteString &rIsoLang );
-
- /// Return the alpha strings representation
- ByteString GetIsoLangByIndex( sal_uInt16 nIndex );
-
- static XMLUtil& Instance();
- ~XMLUtil();
-
- void dump();
-
private:
- /// Mapping iso alpha string code <-> iso numeric code
- HashMap lMap;
-
- /// Mapping iso numeric code <-> iso alpha string code
- ByteString isoArray[MAX_LANGUAGES];
-
static void UnQuotData( String &rString );
static void UnQuotTags( String &rString );
-
- XMLUtil();
- XMLUtil(const XMLUtil&);
-
};
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index f85bd90df8e2..6713339b3e14 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -330,9 +330,6 @@ void XMLFile::WriteString( ofstream &rStream, const String &sString )
sal_Bool XMLFile::Write( ofstream &rStream , XMLNode *pCur )
{
- XMLUtil& xmlutil = XMLUtil::Instance();
- (void) xmlutil;
-
if ( !pCur )
Write( rStream, this );
else {
@@ -351,11 +348,11 @@ sal_Bool XMLFile::Write( ofstream &rStream , XMLNode *pCur )
for ( size_t j = 0; j < pElement->GetAttributeList()->size(); j++ ) {
rStream << " ";
String sData(* (*pElement->GetAttributeList())[ j ] );
- xmlutil.QuotHTML( sData );
+ XMLUtil::QuotHTML( sData );
WriteString( rStream , sData );
rStream << "=\"";
sData = (*pElement->GetAttributeList())[ j ]->GetValue();
- xmlutil.QuotHTML( sData );
+ XMLUtil::QuotHTML( sData );
WriteString( rStream , sData );
rStream << "\"";
}
@@ -374,7 +371,7 @@ sal_Bool XMLFile::Write( ofstream &rStream , XMLNode *pCur )
case XML_NODE_TYPE_DATA: {
XMLData *pData = ( XMLData * ) pCur;
String sData( pData->GetData());
- xmlutil.QuotHTML( sData );
+ XMLUtil::QuotHTML( sData );
WriteString( rStream, sData );
}
break;
@@ -1417,35 +1414,4 @@ void XMLUtil::UnQuotData( String &rString_in ){
}
-XMLUtil::XMLUtil(){
-}
-
-
-/*****************************************************************************/
-void XMLUtil::dump(){
-/*****************************************************************************/
- int cnt=1;
- printf("size=%lu\n",static_cast<unsigned long>(lMap.size()));
- for(HashMap::iterator pos = lMap.begin(); pos != lMap.end() ; ++pos){
- fprintf(stdout,"key=%s , value=%d , no=%d\n",pos->first.GetBuffer(),pos->second,cnt++);
- }
-}
-/*****************************************************************************/
-XMLUtil& XMLUtil::Instance(){
-/*****************************************************************************/
- static XMLUtil instance;
- return instance;
-}
-/*****************************************************************************/
-XMLUtil::~XMLUtil(){}
-/*****************************************************************************/
-/*****************************************************************************/
-ByteString XMLUtil::GetIsoLangByIndex( sal_uInt16 nIndex )
-/*****************************************************************************/
-{
- if(nIndex > 0 && MAX_LANGUAGES >= nIndex )
- return isoArray[nIndex];
- return "";
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */