浏览代码

Fix unused find

Tristan VALCKE 7 年之前
父节点
当前提交
faea56c549
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      examples/js/loaders/XLoader.js

+ 0 - 2
examples/js/loaders/XLoader.js

@@ -231,14 +231,12 @@ THREE.XLoader.prototype = {
 	getNextSection: function ( _offset, _start, _end ) {
 	getNextSection: function ( _offset, _start, _end ) {
 
 
 		var scope = this;
 		var scope = this;
-		var find = scope.data.indexOf( "{", _offset );
 		return [ scope.data.substr( _offset, _start - _offset ).trim(), scope.data.substr( _start + 1, _end - _start - 1 ) ];
 		return [ scope.data.substr( _offset, _start - _offset ).trim(), scope.data.substr( _start + 1, _end - _start - 1 ) ];
 
 
 	},
 	},
 
 
 	getNextSection2: function ( _obj, _offset, _start, _end ) {
 	getNextSection2: function ( _obj, _offset, _start, _end ) {
 
 
-		var find = _obj.indexOf( "{", _offset );
 		return [ _obj.substr( _offset, _start - _offset ).trim(), _obj.substr( _start + 1, _end - _start - 1 ) ];
 		return [ _obj.substr( _offset, _start - _offset ).trim(), _obj.substr( _start + 1, _end - _start - 1 ) ];
 
 
 	},
 	},