summaryrefslogtreecommitdiffstats
path: root/generator/headergenerator.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-01 14:27:39 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-01 14:29:35 -0200
commitaebf1341686e1a694a5ad9b24e384ee494683af8 (patch)
tree3712cb8e08edb590adbc604e50bd6e317461ae9b /generator/headergenerator.cpp
parentd117950aa36d409140296d7efdfbbfc928722e04 (diff)
downloadshiboken-aebf1341686e1a694a5ad9b24e384ee494683af8.tar.gz
shiboken-aebf1341686e1a694a5ad9b24e384ee494683af8.tar.xz
shiboken-aebf1341686e1a694a5ad9b24e384ee494683af8.zip
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.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/generator/headergenerator.cpp b/generator/headergenerator.cpp
index 3e242cc1..76206d32 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())