summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-12 12:53:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-14 07:35:58 +0000
commit1987a5c7772fafc1e863deeead9081fd747f7713 (patch)
treeeb7e7f1c8ffddd7faaafe709695d83efa1e3a85c /l10ntools
parenta2fc48ea649c341a9cfc96c6f3e16ba56ae4fa19 (diff)
callcatcher: remove unused code
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/xmlparse.hxx4
-rw-r--r--l10ntools/source/xmlparse.cxx36
2 files changed, 0 insertions, 40 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 1c5f0d06735e..6cf49533e6fb 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -206,7 +206,6 @@ typedef boost::unordered_map<ByteString , sal_Bool ,
class XMLFile : public XMLParentNode
{
public:
- XMLFile() ;
XMLFile(
const String &rFileName // the file name, empty if created from memory stream
);
@@ -217,9 +216,6 @@ public:
void Print( XMLNode *pCur = NULL, sal_uInt16 nLevel = 0 );
virtual void SearchL10NElements( XMLParentNode *pCur, int pos = 0 );
void Extract( XMLFile *pCur = NULL );
- void View();
-// void static Signal_handler(int signo);//void*,oslSignalInfo * pInfo);
- void showType(XMLParentNode* node);
XMLHashMap* GetStrings(){return XMLStrings;}
sal_Bool Write( ByteString &rFilename );
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index f7d8018ae9de..c63a4610087e 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -497,22 +497,6 @@ void XMLFile::Extract( XMLFile *pCur )
}
/*****************************************************************************/
-void XMLFile::View(){
-/*****************************************************************************/
- XMLElement* cur;
- for(XMLHashMap::iterator pos=XMLStrings->begin(); pos!=XMLStrings->end();++pos){
- fprintf(stdout,"\nid=%s\n",(pos->first).GetBuffer());
- LangHashMap* elem=pos->second;
- for(LangHashMap::iterator pos2=elem->begin(); pos2!=elem->end();++pos2){
- fprintf( stdout,"\nlanguage=%s\n",(pos2->first).GetBuffer() );
- cur=pos2->second;
- fprintf(stdout,"\n%s\n",((XMLElement*)cur)->ToOString().getStr());
-
- }
- }
-}
-
-/*****************************************************************************/
void XMLFile::InsertL10NElement( XMLElement* pElement ){
/*****************************************************************************/
ByteString tmpStr,id,oldref,language("");
@@ -552,26 +536,6 @@ void XMLFile::InsertL10NElement( XMLElement* pElement ){
(*elem)[ language ]=pElement;
}
}
-/*****************************************************************************/
-void XMLFile::showType(XMLParentNode* node){
-/*****************************************************************************/
- switch (node->GetNodeType()){
- case XML_NODE_TYPE_ELEMENT: fprintf(stdout,"ELEMENT\n") ;break;
- case XML_NODE_TYPE_FILE: fprintf(stdout,"FILE\n") ;break;
- case XML_NODE_TYPE_COMMENT: fprintf(stdout,"COMMENT\n") ;break;
- case XML_NODE_TYPE_DATA: fprintf(stdout,"DATA\n") ;break;
- case XML_NODE_TYPE_DEFAULT: fprintf(stdout,"DEFAULT\n") ;break;
- default: break;
- }
-}
-XMLFile::XMLFile()
-/*****************************************************************************/
- : XMLParentNode( NULL ),
- ID ( "id" ),
- OLDREF ( "oldref" ),
- XML_LANG ( "xml-lang" ),
- XMLStrings ( NULL ){};
-
XMLFile::XMLFile( const XMLFile& obj )
/*****************************************************************************/