Skip to content

Commit

Permalink
SelectionHelper: Remove unused parameter from constructor. (#24057)
Browse files Browse the repository at this point in the history
* Removed unused parameter SelectionHelper.js

selectionBox is never used

* Removed unused parameter from SelectionHelper

Removed unused parameter- selectionBox- from SelectionHelper instantiation
  • Loading branch information
CarlBateman authored May 15, 2022
1 parent e3c8c74 commit cbcea21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/jsm/interactive/SelectionHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {

class SelectionHelper {

constructor( selectionBox, renderer, cssClassName ) {
constructor( renderer, cssClassName ) {

this.element = document.createElement( 'div' );
this.element.classList.add( cssClassName );
Expand Down
2 changes: 1 addition & 1 deletion examples/misc_boxselection.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
}

const selectionBox = new SelectionBox( camera, scene );
const helper = new SelectionHelper( selectionBox, renderer, 'selectBox' );
const helper = new SelectionHelper( renderer, 'selectBox' );

document.addEventListener( 'pointerdown', function ( event ) {

Expand Down

0 comments on commit cbcea21

Please sign in to comment.