diff --git a/package-lock.json b/package-lock.json index d5be9ec..7431d8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2693,11 +2693,6 @@ "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", "dev": true }, - "i": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/i/-/i-0.3.6.tgz", - "integrity": "sha1-2WyScyB28HJxG2sQ/X1PZa2O4j0=" - }, "indent-string": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", diff --git a/package.json b/package.json index 69e5214..a061ff6 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,10 @@ "name": "r3", "description": "R3", "version": "1.0.0", - "repository": "https://bitbucket.org/cybafelo/r3-3ditor.git", + "repository": "https://bitbucket.org/cybafelo/r3/src/master/", "license": "UNLICENSED", "dependencies": { "cannon": "^0.6.2", - "i": "^0.3.5", - "npm": "^6.4.1", - "q": "^1.4.1", "three": "*" }, "devDependencies": { @@ -18,6 +15,7 @@ "gulp-minify": "*", "gulp-sort": "*", "gulp-watch": "^5.0.1", - "lodash": "^4.17.2" + "lodash": "^4.17.2", + "npm": "^6.4.1" } } diff --git a/src/r3-a-0.js b/src/r3-a-0.js index 33c0616..d802984 100644 --- a/src/r3-a-0.js +++ b/src/r3-a-0.js @@ -35,25 +35,7 @@ if (typeof R3.D3.Runtime === 'undefined') { R3.D3.Runtime = function(){}; } -// if (typeof Q === 'undefined') { -// -// if (typeof require === 'undefined') { -// console.warn('You need the Q promise library for the R3.D3'); -// throw new Error('You need the Q promise library for the R3.D3'); -// } -// -// var Q = require('q'); -// } -// -// if (typeof _ === 'undefined') { -// -// if (typeof require === 'undefined') { -// console.warn('You need the lodash library for the R3.D3'); -// throw new Error('You need the lodash library for the R3.D3'); -// } -// -// var _ = require('lodash'); -// } - -// This gets injected by gulp +/** + * This gets injected by gulp + */ console.log("Loading R3 compiled at: " + __DATE__); diff --git a/src/r3-a-2-utils.js b/src/r3-a-2-utils.js index 5c59a5e..3a935a1 100644 --- a/src/r3-a-2-utils.js +++ b/src/r3-a-2-utils.js @@ -205,31 +205,6 @@ R3.Utils.ObjectIdWithNameInArray = function(name, array) { ); }; -// R3.Utils.ObjectFactory = function() { -// -// var promiseList = {}; -// -// return function(objectId) { -// -// if (!objectId) { -// console.log('No Object ID specified ' + objectId); -// throw new Error('No Object ID specified ' + objectId); -// } -// -// if (promiseList[objectId]) { -// return promiseList[objectId]; -// } -// -// var defer = Q.defer(); -// -// promiseList[objectId] = defer.promise; -// -// R3.Utils.ObjectFactory.Link(idToObject, objectId, defer); -// -// return promiseList[objectId]; -// } -// }; - R3.Utils.LoadIdsFromArrayToIdObject = function(array, idToObject) { };