diff options
author | Povilas Kanapickas <povilas.kanapickas@gmail.com> | 2010-10-18 16:25:37 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 16:25:47 +0100 |
commit | a8ac6c40db8f3b0ba1693c6e7135fb559e56be2c (patch) | |
tree | 98e5d778bf12b8787dca7fdd3b89360d8c2b2f40 /xml2cmp | |
parent | 18e67a7e8cf65186047aeb62643aa716a731f507 (diff) |
remove non-compiled code
Diffstat (limited to 'xml2cmp')
-rw-r--r-- | xml2cmp/source/xcd/main.cxx | 66 | ||||
-rw-r--r-- | xml2cmp/source/xcd/xmltree.cxx | 36 |
2 files changed, 0 insertions, 102 deletions
diff --git a/xml2cmp/source/xcd/main.cxx b/xml2cmp/source/xcd/main.cxx index 3f3a325b2..f535f0703 100644 --- a/xml2cmp/source/xcd/main.cxx +++ b/xml2cmp/source/xcd/main.cxx @@ -172,72 +172,6 @@ Create_TypeInfo( const char * o_sOutputFile, Put2StdOut_TypeInfo(i_rData); else Put2File_TypeInfo(o_sOutputFile,i_rData); - -#if 0 - std::ofstream aOut(o_sOutputFile, std::ios::out -#if defined(WNT) || defined(OS2) - | std::ios::binary -#endif - ); - if ( !aOut ) - { - std::cerr << "Error: " << o_sOutputFile << " could not be created." << std::endl; - return; - } - - Heap aTypesHeap(12); - Simstr sLibPrefix = i_rData.ModuleName(); - - // Gather types: - List< const MultipleTextElement * > aTypes; - i_rData.Get_Types(aTypes); - - for ( unsigned t = 0; t < aTypes.size(); ++t ) - { - unsigned i_max = aTypes[t]->Size(); - for ( unsigned i = 0; i < i_max; ++i ) - { - aTypesHeap.InsertValue( aTypes[t]->Data(i), "" ); - } // end for - } - - // Write types: - WriteStr( aOut, sLibPrefix ); - WriteStr( aOut, "_XML2CMPTYPES= "); - - HeapItem * pLastHeapTop = 0; - for ( HeapItem * pHeapTop = aTypesHeap.ReleaseTop(); pHeapTop != 0; pHeapTop = aTypesHeap.ReleaseTop() ) - { - if (pLastHeapTop != 0) - { - if ( 0 == strcmp(pHeapTop->Key(), pLastHeapTop->Key()) ) - continue; - delete pLastHeapTop; - } - pLastHeapTop = pHeapTop; - - WriteStr( aOut, "\t\\\n\t\t" ); - - const char * sEnd = strchr( pHeapTop->Key(), ' ' ); - if (sEnd != 0) - { - const char * sQuali = strrchr( pHeapTop->Key(), ' ' )+1; - WriteStr( aOut, sQuali ); - WriteStr( aOut, "." ); - aOut.write( pHeapTop->Key(), sEnd - pHeapTop->Key() ); - } - else - WriteStr( aOut, pHeapTop->Key() ); - } // end for - - if (pLastHeapTop != 0) - { - delete pLastHeapTop; - pLastHeapTop = 0; - } - - aOut.close(); -#endif // 0 } void diff --git a/xml2cmp/source/xcd/xmltree.cxx b/xml2cmp/source/xcd/xmltree.cxx index 5d2bbfa87..240f41130 100644 --- a/xml2cmp/source/xcd/xmltree.cxx +++ b/xml2cmp/source/xcd/xmltree.cxx @@ -248,41 +248,5 @@ Create_CompDescrOptional_Element( MultipleTextElement * & o_rTypes, } -#if 0 - -const TextElement * -ModuleDescription::ServiceDependencies() const -{ - const unsigned nEarliestPossibleServiceDependenciesIndexInModules = 1; - - for ( unsigned i = nEarliestPossibleServiceDependenciesIndexInModules; - i < Children().size(); - ++i ) - { - if ( strcmp(Children()[i]->Name(), C_sServiceDependency) == 0 ) - return Children()[i]; - } - return 0; -} - -const TextElement & -ComponentDescription::SupportedServices() const -{ - return *Children()[C_nSupportedServicesIndex]; -} - -const TextElement * -ComponentDescription::ServiceDependencies() const -{ - for ( unsigned i = C_nEarliestPossibleServiceDependenciesIndex; i < Children().size(); ++i ) - { - if ( strcmp(Children()[i]->Name(),C_sServiceDependency) == 0) - return Children()[i]; - } - return 0; -} - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |