diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-01 14:27:39 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:07 -0300 |
commit | 3cfac85d50b8f891a8230513a4b5a0f6aea67b3e (patch) | |
tree | 546bff5ad1910b6bdb0d54becc950a9bf8f218d1 /generator/headergenerator.cpp | |
parent | 96488c9cfd16c6ef9800c678c83d271343c2a813 (diff) |
Remove SbkTypeInfo and CppObjectCopier structs, they aren't needed after the fix on qt_metacall.
Diffstat (limited to 'generator/headergenerator.cpp')
-rw-r--r-- | generator/headergenerator.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/generator/headergenerator.cpp b/generator/headergenerator.cpp index 3e242cc14..76206d32a 100644 --- a/generator/headergenerator.cpp +++ b/generator/headergenerator.cpp @@ -360,7 +360,6 @@ void HeaderGenerator::finishGeneration() if (!metaClass->isNamespace()) { writeSbkTypeFunction(typeFunctions, metaClass); - writeSbkCopyCppObjectFunction(convDecl, metaClass); writeTypeConverterDecl(convDecl, classType); writeTypeConverterImpl(convImpl, classType); convDecl << endl; @@ -505,18 +504,6 @@ void HeaderGenerator::writeSbkTypeFunction(QTextStream& s, const AbstractMetaCla << "{ return reinterpret_cast<PyTypeObject*>(" << cpythonTypeNameExt(cppClass->typeEntry()) << "); }\n"; } -void HeaderGenerator::writeSbkCopyCppObjectFunction(QTextStream& s, const AbstractMetaClass* metaClass) -{ - if (!metaClass->typeEntry()->isValue() || !shouldGenerateCppWrapper(metaClass)) - return; - QString className = metaClass->qualifiedCppName(); - s << "template <>" << endl; - s << "struct SbkTypeInfo<" << className << " >" << endl; - s << '{' << endl; - s << INDENT << "static const bool isCppWrapper = true;" << endl; - s << "};" << endl; -} - void HeaderGenerator::writeTypeConverterImpl(QTextStream& s, const TypeEntry* type) { if (type->hasNativeConversionRule()) |