summaryrefslogtreecommitdiff
path: root/idlc/source
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 15:17:58 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:45 +0200
commit25cd5ef3de74c9c0b0cd739e479a256110a99ddc (patch)
tree4691ce5b3f78e277d63864b031688a4df88ff039 /idlc/source
parent9ef6565f18343ec4f6fd010a74cf2be045a3e670 (diff)
remove dead code in astdump.cxx (in idlc dir).
Diffstat (limited to 'idlc/source')
-rw-r--r--idlc/source/astdump.cxx71
1 files changed, 26 insertions, 45 deletions
diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx
index cf8f33edbc9a..9941e5e1c664 100644
--- a/idlc/source/astdump.cxx
+++ b/idlc/source/astdump.cxx
@@ -254,83 +254,64 @@ sal_Bool AstService::dump(RegistryKey& rKey)
sal_uInt16 constructorIndex = 0;
sal_uInt16 propertyIndex = 0;
sal_uInt16 referenceIndex = 0;
- {for (DeclList::const_iterator i(getIteratorBegin()); i != getIteratorEnd();
- ++i)
+ for (DeclList::const_iterator i(getIteratorBegin()); i != getIteratorEnd(); ++i)
{
switch ((*i)->getNodeType()) {
case NT_operation:
-// static_cast< AstOperation * >(*i)->dumpBlob(
- ((AstOperation *)(*i))->dumpBlob(
- writer, constructorIndex++);
+ ((AstOperation *)(*i))->dumpBlob(writer, constructorIndex++);
break;
case NT_property:
-// static_cast< AstAttribute * >(*i)->dumpBlob(
- ((AstAttribute *)(*i))->dumpBlob(
- writer, propertyIndex++, 0);
+ ((AstAttribute *)(*i))->dumpBlob(writer, propertyIndex++, 0);
break;
case NT_interface_member:
- {
-// AstInterfaceMember * decl = static_cast< AstInterfaceMember *>(*i);
- AstInterfaceMember * decl = (AstInterfaceMember *)(*i);
- writer.setReferenceData(
- referenceIndex++, decl->getDocumentation(), RT_REF_SUPPORTS,
- (decl->isOptional()
- ? RT_ACCESS_OPTIONAL : RT_ACCESS_INVALID),
- rtl::OStringToOUString(
- decl->getRealInterface()->getRelativName(),
- RTL_TEXTENCODING_UTF8));
- break;
- }
+ {
+ AstInterfaceMember * decl = (AstInterfaceMember *)(*i);
+ writer.setReferenceData(
+ referenceIndex++, decl->getDocumentation(), RT_REF_SUPPORTS,
+ (decl->isOptional() ? RT_ACCESS_OPTIONAL : RT_ACCESS_INVALID),
+ rtl::OStringToOUString( decl->getRealInterface()->getRelativName(),
+ RTL_TEXTENCODING_UTF8));
+ break;
+ }
case NT_service_member:
- if (getNodeType() == NT_service) {
-// AstServiceMember * decl = static_cast< AstServiceMember * >(*i);
+ if (getNodeType() == NT_service)
+ {
AstServiceMember * decl = (AstServiceMember *)(*i);
- writer.setReferenceData(
- referenceIndex++, decl->getDocumentation(), RT_REF_EXPORTS,
- (decl->isOptional()
- ? RT_ACCESS_OPTIONAL : RT_ACCESS_INVALID),
- rtl::OStringToOUString(
- decl->getRealService()->getRelativName(),
- RTL_TEXTENCODING_UTF8));
+ writer.setReferenceData(referenceIndex++, decl->getDocumentation(), RT_REF_EXPORTS,
+ (decl->isOptional() ? RT_ACCESS_OPTIONAL : RT_ACCESS_INVALID),
+ rtl::OStringToOUString(decl->getRealService()->getRelativName(),
+ RTL_TEXTENCODING_UTF8));
}
break;
case NT_observes:
{
-// AstObserves * decl = static_cast< AstObserves * >(*i);
AstObserves * decl = (AstObserves *)(*i);
- writer.setReferenceData(
- referenceIndex++, decl->getDocumentation(), RT_REF_OBSERVES,
+ writer.setReferenceData(referenceIndex++, decl->getDocumentation(), RT_REF_OBSERVES,
RT_ACCESS_INVALID,
- rtl::OStringToOUString(
- decl->getRealInterface()->getRelativName(),
- RTL_TEXTENCODING_UTF8));
+ rtl::OStringToOUString( decl->getRealInterface()->getRelativName(),
+ RTL_TEXTENCODING_UTF8));
break;
}
case NT_needs:
{
-// AstNeeds * decl = static_cast< AstNeeds * >(*i);
AstNeeds * decl = (AstNeeds *)(*i);
- writer.setReferenceData(
- referenceIndex++, decl->getDocumentation(), RT_REF_NEEDS,
+ writer.setReferenceData( referenceIndex++, decl->getDocumentation(), RT_REF_NEEDS,
RT_ACCESS_INVALID,
- rtl::OStringToOUString(
- decl->getRealService()->getRelativName(),
- RTL_TEXTENCODING_UTF8));
+ rtl::OStringToOUString( decl->getRealService()->getRelativName(),
+ RTL_TEXTENCODING_UTF8));
break;
}
default:
- OSL_ASSERT(
- (*i)->getNodeType() == NT_interface
- || (*i)->getNodeType() == NT_typedef);
+ OSL_ASSERT( (*i)->getNodeType() == NT_interface || (*i)->getNodeType() == NT_typedef);
break;
}
- }}
+ }
if (m_defaultConstructor) {
writer.setMethodData(
constructorIndex++, emptyStr, RT_MODE_TWOWAY,