mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Remove raw pointer deprecation warnings.
See discussion in 2016 beta forums for rationale. Change-Id: I86a4c1bd61655f4895e2fe0e935f25dc8a89d830
This commit is contained in:
@@ -36,9 +36,6 @@ AnalogGyro::AnalogGyro(int32_t channel) :
|
||||
* @param channel A pointer to the AnalogInput object that the gyro is connected
|
||||
* to.
|
||||
*/
|
||||
DEPRECATED(
|
||||
"Raw pointers are deprecated; consider calling the Gyro constructor with "
|
||||
"a channel number or passing a shared_ptr instead.")
|
||||
AnalogGyro::AnalogGyro(AnalogInput *channel)
|
||||
: AnalogGyro(
|
||||
std::shared_ptr<AnalogInput>(channel, NullDeleter<AnalogInput>())) {}
|
||||
|
||||
Reference in New Issue
Block a user