Skip to content

Commit 6a67d00

Browse files
authored
Examples: More clean up. (#22880)
1 parent 327f43d commit 6a67d00

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

examples/jsm/loaders/LogLuvLoader.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ UTIF.decodeImage = function ( buff, img, ifds ) {
115115
var tx = Math.floor( ( img.width + tw - 1 ) / tw );
116116
var ty = Math.floor( ( img.height + th - 1 ) / th );
117117
var tbuff = new Uint8Array( Math.ceil( tw * th * bipp / 8 ) | 0 );
118-
console.log( '====', tx, ty );
119118
for ( var y = 0; y < ty; y ++ )
120119
for ( var x = 0; x < tx; x ++ ) {
121120

@@ -132,7 +131,6 @@ UTIF.decodeImage = function ( buff, img, ifds ) {
132131
} else {
133132

134133
var rps = img[ 't278' ] ? img[ 't278' ][ 0 ] : img.height; rps = Math.min( rps, img.height );
135-
console.log( '====', img.width, rps );
136134
for ( var i = 0; i < soff.length; i ++ ) {
137135

138136
UTIF.decode._decompress( img, ifds, data, soff[ i ], bcnt[ i ], cmpr, bytes, Math.ceil( bilen / 8 ) | 0, fo );
@@ -152,7 +150,7 @@ UTIF.decode._decompress = function ( img, ifds, data, off, len, cmpr, tgt, toff
152150

153151
//console.log("compression", cmpr);
154152
//var time = Date.now();
155-
if ( false ) {} else if ( cmpr == 34676 ) UTIF.decode._decodeLogLuv32( img, data, off, len, tgt, toff );
153+
if ( cmpr == 34676 ) UTIF.decode._decodeLogLuv32( img, data, off, len, tgt, toff );
156154
else console.log( 'Unsupported compression', cmpr );
157155

158156
//console.log(Date.now()-time);

examples/jsm/nodes/utils/ColorSpaceNode.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from '../../../../build/three.module.js';
1010

1111
import { TempNode } from '../core/TempNode.js';
12-
import { ConstNode } from '../core/ConstNode.js';
1312
import { FloatNode } from '../inputs/FloatNode.js';
1413
import { FunctionNode } from '../core/FunctionNode.js';
1514
import { ExpressionNode } from '../core/ExpressionNode.js';

0 commit comments

Comments
 (0)