mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Kill deprecated things (#1311)
This commit is contained in:
@@ -273,19 +273,6 @@ public class PhotonCamera implements AutoCloseable {
|
||||
ledModeRequest.set(led.value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the latest target result has targets.
|
||||
*
|
||||
* <p>This method is deprecated; {@link PhotonPipelineResult#hasTargets()} should be used instead.
|
||||
*
|
||||
* @deprecated This method should be replaced with {@link PhotonPipelineResult#hasTargets()}
|
||||
* @return Whether the latest target result has targets.
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean hasTargets() {
|
||||
return getLatestResult().hasTargets();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the camera. This will return the same value that was given to the
|
||||
* constructor as cameraName.
|
||||
|
||||
Reference in New Issue
Block a user