summaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-12 15:48:32 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-12 15:54:50 -0300
commitd21f66a68b8d9c9ec189541a160e6e955ab41af2 (patch)
treed77df9a5bbe09b22348144a04fceb4def80213a8 /headergenerator.cpp
parentb58553f67867dc3e09243a137de560f83758f4a4 (diff)
downloadshiboken-d21f66a68b8d9c9ec189541a160e6e955ab41af2.tar.gz
shiboken-d21f66a68b8d9c9ec189541a160e6e955ab41af2.tar.xz
shiboken-d21f66a68b8d9c9ec189541a160e6e955ab41af2.zip
removed unused method HeaderGenerator::writeVirtualDispatcher;
it was here since the fork from the boostpythongenerator Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index 6b3ec40a..b9d5c240 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -134,38 +134,7 @@ void HeaderGenerator::writeFunction(QTextStream& s, const AbstractMetaFunction*
// TODO: when modified an abstract method ceases to be virtual but stays abstract
//if (func->isModifiedRemoved() && func->isAbstract()) {
//}
-
- // TODO: APIExtractor: strange that something that is abstract couldn't be considered virtual too.
- if (func->isVirtual() && !func->isAbstract() && !func->isConstructor() &&
- !func->ownerClass()->hasPrivateDestructor() &&
- func->implementingClass() == func->ownerClass()) {
- writeVirtualDispatcher(s, func);
- }
- }
-}
-
-void HeaderGenerator::writeVirtualDispatcher(QTextStream& s, const AbstractMetaFunction* func) const
-{
- QString returnKeyword = func->type() ? QLatin1String("return ") : QString();
- s << INDENT << "static " << signatureForDefaultVirtualMethod(func, "", "_dispatcher") << " {" << endl;
- {
- Indentation indentation(INDENT);
- s << INDENT << returnKeyword;
- if (func->isModifiedRemoved() && func->isAbstract()) {
- if (func->type()
- && (func->type()->isObject()
- || func->type()->isQObject()
- || func->type()->name() == "void"))
- s << "0";
- else
- s << functionReturnType(func) << "()";
- } else {
- s << "self." << func->implementingClass()->qualifiedCppName() << "::";
- writeFunctionCall(s, func);
- }
- s << ';' << endl;
}
- s << INDENT << '}' << endl;
}
void HeaderGenerator::writeTypeCheckMacro(QTextStream& s, const TypeEntry* type)