Skip to content

Commit 8fd936d

Browse files
authored
Global: Remove deprecated code. (#31632)
1 parent 0c3f79f commit 8fd936d

File tree

2 files changed

+0
-58
lines changed

2 files changed

+0
-58
lines changed

examples/jsm/controls/DragControls.js

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -234,56 +234,6 @@ class DragControls extends Controls {
234234

235235
}
236236

237-
getRaycaster() {
238-
239-
console.warn( 'THREE.DragControls: getRaycaster() has been deprecated. Use controls.raycaster instead.' ); // @deprecated r169
240-
241-
return this.raycaster;
242-
243-
}
244-
245-
setObjects( objects ) {
246-
247-
console.warn( 'THREE.DragControls: setObjects() has been deprecated. Use controls.objects instead.' ); // @deprecated r169
248-
249-
this.objects = objects;
250-
251-
}
252-
253-
getObjects() {
254-
255-
console.warn( 'THREE.DragControls: getObjects() has been deprecated. Use controls.objects instead.' ); // @deprecated r169
256-
257-
return this.objects;
258-
259-
}
260-
261-
activate() {
262-
263-
console.warn( 'THREE.DragControls: activate() has been renamed to connect().' ); // @deprecated r169
264-
this.connect();
265-
266-
}
267-
268-
deactivate() {
269-
270-
console.warn( 'THREE.DragControls: deactivate() has been renamed to disconnect().' ); // @deprecated r169
271-
this.disconnect();
272-
273-
}
274-
275-
set mode( value ) {
276-
277-
console.warn( 'THREE.DragControls: The .mode property has been removed. Define the type of transformation via the .mouseButtons or .touches properties.' ); // @deprecated r169
278-
279-
}
280-
281-
get mode() {
282-
283-
console.warn( 'THREE.DragControls: The .mode property has been removed. Define the type of transformation via the .mouseButtons or .touches properties.' ); // @deprecated r169
284-
285-
}
286-
287237
}
288238

289239
function onPointerMove( event ) {

examples/jsm/controls/PointerLockControls.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,6 @@ class PointerLockControls extends Controls {
141141

142142
}
143143

144-
getObject() {
145-
146-
console.warn( 'THREE.PointerLockControls: getObject() has been deprecated. Use controls.object instead.' ); // @deprecated r169
147-
148-
return this.object;
149-
150-
}
151-
152144
/**
153145
* Returns the look direction of the camera.
154146
*

0 commit comments

Comments
 (0)