Remove functions in LiveWindow deprecated since 2018 (#1716)

The Java versions were already accidentally removed in #1059.
This commit is contained in:
Tyler Veness
2019-06-14 18:52:10 -07:00
committed by Peter Johnson
parent 1d0c05d4f8
commit b630b63ef0
2 changed files with 2 additions and 159 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2012-2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2012-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -33,103 +33,6 @@ class LiveWindow {
*/
static LiveWindow* GetInstance();
WPI_DEPRECATED("no longer required")
void Run();
/**
* Add a Sensor associated with the subsystem and call it by the given name.
*
* @param subsystem The subsystem this component is part of.
* @param name The name of this component.
* @param component A Sendable component that represents a sensor.
*/
WPI_DEPRECATED("use Sendable::SetName() instead")
void AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
Sendable* component);
/**
* Add a Sensor associated with the subsystem and call it by the given name.
*
* @param subsystem The subsystem this component is part of.
* @param name The name of this component.
* @param component A Sendable component that represents a sensor.
*/
WPI_DEPRECATED("use Sendable::SetName() instead")
void AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
Sendable& component);
/**
* Add a Sensor associated with the subsystem and call it by the given name.
*
* @param subsystem The subsystem this component is part of.
* @param name The name of this component.
* @param component A Sendable component that represents a sensor.
*/
WPI_DEPRECATED("use Sendable::SetName() instead")
void AddSensor(const wpi::Twine& subsystem, const wpi::Twine& name,
std::shared_ptr<Sendable> component);
/**
* Add an Actuator associated with the subsystem and call it by the given
* name.
*
* @param subsystem The subsystem this component is part of.
* @param name The name of this component.
* @param component A Sendable component that represents a actuator.
*/
WPI_DEPRECATED("use Sendable::SetName() instead")
void AddActuator(const wpi::Twine& subsystem, const wpi::Twine& name,
Sendable* component);
/**
* Add an Actuator associated with the subsystem and call it by the given
* name.
*
* @param subsystem The subsystem this component is part of.
* @param name The name of this component.
* @param component A Sendable component that represents a actuator.
*/
WPI_DEPRECATED("use Sendable::SetName() instead")
void AddActuator(const wpi::Twine& subsystem, const wpi::Twine& name,
Sendable& component);
/**
* Add an Actuator associated with the subsystem and call it by the given
* name.
*
* @param subsystem The subsystem this component is part of.
* @param name The name of this component.
* @param component A Sendable component that represents a actuator.
*/
WPI_DEPRECATED("use Sendable::SetName() instead")
void AddActuator(const wpi::Twine& subsystem, const wpi::Twine& name,
std::shared_ptr<Sendable> component);
/**
* Meant for internal use in other WPILib classes.
*
* @deprecated Use SendableBase::SetName() instead.
*/
WPI_DEPRECATED("use SensorUtil::SetName() instead")
void AddSensor(const wpi::Twine& type, int channel, Sendable* component);
/**
* Meant for internal use in other WPILib classes.
*
* @deprecated Use SendableBase::SetName() instead.
*/
WPI_DEPRECATED("use SensorUtil::SetName() instead")
void AddActuator(const wpi::Twine& type, int channel, Sendable* component);
/**
* Meant for internal use in other WPILib classes.
*
* @deprecated Use SendableBase::SetName() instead.
*/
WPI_DEPRECATED("use SensorUtil::SetName() instead")
void AddActuator(const wpi::Twine& type, int module, int channel,
Sendable* component);
/**
* Add a component to the LiveWindow.
*