Skip to content

Commit

Permalink
AdapterControl: remove getComponentsInChildren() method
Browse files Browse the repository at this point in the history
  • Loading branch information
capdevon committed Sep 4, 2023
1 parent 6bf89f4 commit eebf7e7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions game/src/main/java/com/capdevon/control/AdapterControl.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.capdevon.control;

import java.util.List;
import java.util.Objects;

import com.capdevon.engine.GameObject;
Expand Down Expand Up @@ -48,18 +47,6 @@ public <T extends Control> T getComponent(Class<T> type) {
return Objects.requireNonNull(control, type + " not found: " + spatial);
}

/**
* Returns all components of Type type in the GameObject or any of its
* children using depth first search. Works recursively.
*
* @param <T>
* @param type
* @return
*/
public <T extends Control> List<T> getComponentsInChildren(Class<T> type) {
return GameObject.getComponentsInChildren(spatial, type);
}

/**
* Returns the component of Type type in the GameObject or any of its
* children using depth first search.
Expand Down Expand Up @@ -88,12 +75,10 @@ public <T extends Control> T getComponentInParent(Class<T> type) {

@Override
protected void controlUpdate(float tpf) {
//To change body of generated methods, choose Tools | Templates.
}

@Override
protected void controlRender(RenderManager rm, ViewPort vp) {
//To change body of generated methods, choose Tools | Templates.
}

}

0 comments on commit eebf7e7

Please sign in to comment.