From 6c994c4b90023cecf4fd0caafb404b859fe28f54 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Wed, 6 Jun 2012 16:34:41 -0700 Subject: material cleanup and rearchitecture --- js/lib/rdge/materials/cloud-material.js | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'js/lib/rdge/materials/cloud-material.js') diff --git a/js/lib/rdge/materials/cloud-material.js b/js/lib/rdge/materials/cloud-material.js index 2c7fced2..2153b857 100644 --- a/js/lib/rdge/materials/cloud-material.js +++ b/js/lib/rdge/materials/cloud-material.js @@ -106,23 +106,6 @@ var CloudMaterial = function CloudMaterial() /////////////////////////////////////////////////////////////////////// // duplicate method required /**************************************************************/ - this.dup = function (world) { - // save the world - if (world) this.setWorld(world); - - // allocate a new uber material - var newMat = new CloudMaterial(); - - // copy over the current values; - var propNames = [], propValues = [], propTypes = [], propLabels = []; - this.getAllProperties(propNames, propValues, propTypes, propLabels); - var n = propNames.length; - for (var i = 0; i < n; i++) { - newMat.setProperty(propNames[i], propValues[i]); - } - - return newMat; - }; this.init = function (world) { var GLWorld = require("js/lib/drawing/world").World, -- cgit v1.2.3