aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-03-19 03:46:39 -0700
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:26:17 +0300
commita39afe6758e9aadffdd526a7f646293d31389e54 (patch)
treef0e147f61099eef967c2d72e9540f612b8f80517
parent4c10a08fc0d4f070a1e770c28aacfed226021456 (diff)
Code keeps disappearing :)
-rwxr-xr-xsrc/embind/embind.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index e839793c..48646dd7 100755
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -465,7 +465,6 @@ function __embind_register_struct_field(
// todo: I guarantee there is a way to simplify the following data structure.
function RegisteredPointer(
name,
- rawType,
registeredClass,
isReference,
isConst,
@@ -480,7 +479,6 @@ function RegisteredPointer(
rawDestructor
) {
this.name = name;
- this.rawType = rawType;
this.registeredClass = registeredClass;
this.isReference = isReference;
this.isConst = isConst;
@@ -707,7 +705,6 @@ ClassHandle.prototype['delete'] = function() {
function RegisteredClass(
name,
- rawType,
constructor,
instancePrototype,
rawDestructor,
@@ -717,7 +714,6 @@ function RegisteredClass(
downcast
) {
this.name = name;
- this.rawType = rawType;
this.constructor = constructor;
this.instancePrototype = instancePrototype;
this.rawDestructor = rawDestructor;
@@ -758,7 +754,6 @@ function __embind_register_class(
var baseClass;
var basePrototype;
- var depth;
if (baseClassRawType) {
baseClasses[rawType] = baseClassRawType;
@@ -787,7 +782,6 @@ function __embind_register_class(
var registeredClass = new RegisteredClass(
name,
- rawType,
constructor,
instancePrototype,
rawDestructor,
@@ -796,19 +790,15 @@ function __embind_register_class(
upcast,
downcast);
- // todo: clean this up!
- var type = new RegisteredPointer(
+ registerType(rawType, new RegisteredPointer(
name,
- rawType,
registeredClass,
true,
false,
- false);
- registerType(rawType, type);
+ false));
var pointerType = new RegisteredPointer(
name + '*',
- rawPointerType,
registeredClass,
false,
false,
@@ -817,7 +807,6 @@ function __embind_register_class(
var constPointerType = new RegisteredPointer(
name + ' const*',
- rawConstPointerType,
registeredClass,
false,
true,
@@ -1031,7 +1020,6 @@ function __embind_register_smart_ptr(
var registeredPointer = new RegisteredPointer(
name,
- rawType,
pointeeType.registeredClass,
false,
false,