From fa5740279daa22be3c424c8fab4468447b3cbcaf Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Thu, 11 Feb 2010 11:47:27 -0200 Subject: Do not declare and export *_New functions on global header. --- headergenerator.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/headergenerator.cpp b/headergenerator.cpp index ad22353d1..f5765ed2c 100644 --- a/headergenerator.cpp +++ b/headergenerator.cpp @@ -252,8 +252,6 @@ void HeaderGenerator::finishGeneration() if (shouldGenerate(innerClass)) { writeSbkCopyCppObjectFunction(typeFunctions, innerClass); s_cin << innerClass->typeEntry()->include().toString() << endl; - s_pts << getApiExportMacro() << " PyAPI_FUNC(PyObject*) " << cpythonBaseName(innerClass->typeEntry()); - s_pts << "_New(Shiboken::SbkBaseWrapperType* type, PyObject* args, PyObject* kwds);" << endl; writeTypeCheckMacro(s_pts, innerClass->typeEntry()); s_pts << "#define " << cpythonWrapperCPtr(innerClass, "pyobj") << " (("; s_pts << innerClass->qualifiedCppName() << "*)SbkBaseWrapper_cptr(pyobj))" << endl << endl; @@ -262,8 +260,6 @@ void HeaderGenerator::finishGeneration() writeSbkTypeFunction(typeFunctions, innerClass); } } - s_pts << getApiExportMacro() << " PyAPI_FUNC(PyObject*) " << cpythonBaseName(metaClass->typeEntry()); - s_pts << "_New(Shiboken::SbkBaseWrapperType* type, PyObject* args, PyObject* kwds);" << endl; writeTypeCheckMacro(s_pts, classType); s_pts << "#define " << cpythonWrapperCPtr(metaClass, "pyobj") << " (("; s_pts << metaClass->qualifiedCppName() << "*)SbkBaseWrapper_cptr(pyobj))" << endl << endl; -- cgit v1.2.3