diff generator/cppimplgenerator.cpp @ 40:a5cc4ada07f5

remove obsolete stuff
author eldar
date Sun, 17 May 2009 02:08:42 +0000
parents a5cba313c924
children 1750a803af74
line wrap: on
line diff
--- a/generator/cppimplgenerator.cpp	Sun May 17 01:44:06 2009 +0000
+++ b/generator/cppimplgenerator.cpp	Sun May 17 02:08:42 2009 +0000
@@ -42,7 +42,6 @@
 #include "cppimplgenerator.h"
 #include "dgenerator.h"
 #include "reporthandler.h"
-#include <qnativepointer.h>
 
 #include <QDir>
 #include <QtDebug>
@@ -2916,36 +2915,6 @@
 // qtd    s << INDENT << "QTJAMBI_EXCEPTION_CHECK(__jni_env);" << endl;
 }
 
-static int nativePointerType(const AbstractMetaType *java_type)
-{
-    Q_ASSERT(java_type);
-    Q_ASSERT(java_type->isNativePointer());
-
-    if (!java_type->typeEntry()->isPrimitive())
-        return PointerType;
-
-    if (java_type->indirections() > 1)
-        return PointerType;
-
-    static QHash<QString, int> types;
-    if (types.isEmpty()) {
-        types["boolean"] = BooleanType;
-        types["byte"] = ByteType;
-        types["char"] = CharType;
-        types["short"] = ShortType;
-        types["int"] = IntType;
-        types["long"] = LongType;
-        types["float"] = FloatType;
-        types["double"] = DoubleType;
-    }
-
-    QString targetLangName = java_type->typeEntry()->targetLangName();
-    if (!types.contains(targetLangName))
-        return PointerType;
-
-    return types[targetLangName];
-}
-
 void CppImplGenerator::writeQtToJava(QTextStream &s,
                                      const AbstractMetaType *java_type,
                                      const QString &qt_name,