Kill deprecated things (#1311)

This commit is contained in:
Matt
2024-04-27 12:32:36 -04:00
committed by GitHub
parent 010688006a
commit c9a696225d
5 changed files with 0 additions and 531 deletions

View File

@@ -37,7 +37,6 @@
#include <networktables/RawTopic.h>
#include <networktables/StringTopic.h>
#include <units/time.h>
#include <wpi/deprecated.h>
#include "photon/targeting//PhotonPipelineResult.h"
@@ -152,18 +151,6 @@ class PhotonCamera {
std::optional<cv::Mat> GetCameraMatrix();
std::optional<cv::Mat> GetDistCoeffs();
/**
* Returns whether the latest target result has targets.
* 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.
*/
WPI_DEPRECATED(
"This method should be replaced with PhotonPipelineResult::HasTargets()")
bool HasTargets() { return GetLatestResult().HasTargets(); }
inline static void SetVersionCheckEnabled(bool enabled) {
PhotonCamera::VERSION_CHECK_ENABLED = enabled;
}