From 1379735aff1952e37f788d47d3ee9ca152e0de28 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 24 Aug 2019 22:28:39 -0700 Subject: [PATCH] Delete RobotState and SensorUtil constructors (#1847) --- wpilibc/src/main/native/include/frc/RobotState.h | 2 ++ wpilibc/src/main/native/include/frc/SensorUtil.h | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wpilibc/src/main/native/include/frc/RobotState.h b/wpilibc/src/main/native/include/frc/RobotState.h index c6b6b875cd..60e608ab04 100644 --- a/wpilibc/src/main/native/include/frc/RobotState.h +++ b/wpilibc/src/main/native/include/frc/RobotState.h @@ -13,6 +13,8 @@ namespace frc { class RobotState { public: + RobotState() = delete; + static bool IsDisabled(); static bool IsEnabled(); static bool IsEStopped(); diff --git a/wpilibc/src/main/native/include/frc/SensorUtil.h b/wpilibc/src/main/native/include/frc/SensorUtil.h index a38b5424e6..ab471b1e27 100644 --- a/wpilibc/src/main/native/include/frc/SensorUtil.h +++ b/wpilibc/src/main/native/include/frc/SensorUtil.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-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. */ @@ -15,6 +15,8 @@ namespace frc { */ class SensorUtil final { public: + SensorUtil() = delete; + /** * Get the number of the default solenoid module. * @@ -109,9 +111,6 @@ class SensorUtil final { static const int kPwmChannels; static const int kRelayChannels; static const int kPDPChannels; - - private: - SensorUtil() = default; }; } // namespace frc