summaryrefslogtreecommitdiff
path: root/xml2cmp
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas.kanapickas@gmail.com>2010-10-18 16:25:37 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 16:25:47 +0100
commitc189268e0ab3ec33c02c5dbabfd31b37e0b1f5ab (patch)
tree1a67096d0b39a58883f5eaabd041f187ae33b5f3 /xml2cmp
parent17a52bb6a8d830b99605b0ecad84e50cac452a28 (diff)
remove non-compiled code
Diffstat (limited to 'xml2cmp')
-rw-r--r--xml2cmp/source/xcd/main.cxx66
-rw-r--r--xml2cmp/source/xcd/xmltree.cxx36
2 files changed, 0 insertions, 102 deletions
diff --git a/xml2cmp/source/xcd/main.cxx b/xml2cmp/source/xcd/main.cxx
index 5e92bbe558dc..a09c0f78a842 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 1503c09d2ff8..6c823a1d8054 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: */