@@ -87,12 +87,6 @@
//
- texture.deallocate();
-
- mesh.deallocate();
- mesh.geometry.deallocate();
- mesh.material.deallocate();
renderer.deallocateObject( mesh );
renderer.deallocateTexture( texture );
@@ -29,8 +29,6 @@ THREE.BufferGeometry = function () {
this.morphTargets = [];
- THREE.GeometryLibrary[ this.id ] = this;
};
THREE.BufferGeometry.prototype = {
@@ -542,12 +540,6 @@ THREE.BufferGeometry.prototype = {
this.hasTangents = true;
this.tangentsNeedUpdate = true;
- },
- deallocate: function () {
- delete THREE.GeometryLibrary[ this.id ];
}
@@ -50,8 +50,6 @@ THREE.Geometry = function () {
this.buffersNeedUpdate = false;
THREE.Geometry.prototype = {
@@ -734,15 +732,8 @@ THREE.Geometry.prototype = {
return geometry;
THREE.GeometryIdCount = 0;
-THREE.GeometryLibrary = {};
@@ -47,8 +47,6 @@ THREE.Object3D = function () {
this._vector = new THREE.Vector3();
- THREE.Object3DLibrary[ this.id ] = this;
@@ -358,12 +356,6 @@ THREE.Object3D.prototype = {
return object;
- delete THREE.Object3DLibrary[ this.id ];
@@ -372,4 +364,3 @@ THREE.Object3D.__m1 = new THREE.Matrix4();
THREE.Object3D.defaultEulerOrder = 'XYZ',
THREE.Object3DIdCount = 0;
-THREE.Object3DLibrary = {};
@@ -35,8 +35,6 @@ THREE.Material = function () {
this.needsUpdate = true;
- THREE.MaterialLibrary[ this.id ] = this;
THREE.Material.prototype.setValues = function ( values ) {
@@ -116,11 +114,4 @@ THREE.Material.prototype.clone = function ( material ) {
-THREE.Material.prototype.deallocate = function () {
- delete THREE.MaterialLibrary[ this.id ];
-};
THREE.MaterialIdCount = 0;
-THREE.MaterialLibrary = {};
@@ -37,8 +37,6 @@ THREE.Texture = function ( image, mapping, wrapS, wrapT, magFilter, minFilter, f
this.needsUpdate = false;
this.onUpdate = null;
- THREE.TextureLibrary[ this.id ] = this;
THREE.Texture.prototype = {
@@ -75,15 +73,8 @@ THREE.Texture.prototype = {
return texture;
- delete THREE.TextureLibrary[ this.id ];
THREE.TextureIdCount = 0;
-THREE.TextureLibrary = {};