mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Clean up unused includes (#8950)
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include <jni.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_AlertJNI.h"
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_AnalogInputJNI.h"
|
||||
#include "wpi/hal/AnalogInput.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_CTREPCMJNI.h"
|
||||
#include "wpi/hal/CTREPCM.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_CounterJNI.h"
|
||||
#include "wpi/hal/Counter.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_DIOJNI.h"
|
||||
#include "wpi/hal/DIO.h"
|
||||
#include "wpi/hal/PWM.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_DriverStationJNI.h"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/DriverStationTypes.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
static_assert(
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_EncoderJNI.h"
|
||||
#include "wpi/hal/Encoder.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
|
||||
@@ -11,18 +11,12 @@
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_HAL.h"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Main.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::hal;
|
||||
using namespace wpi::util::java;
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "org_wpilib_hardware_hal_HALUtil.h"
|
||||
#include "wpi/hal/CAN.h"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/HAL.h"
|
||||
|
||||
@@ -8,10 +8,7 @@
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_PWMJNI.h"
|
||||
#include "wpi/hal/DIO.h"
|
||||
#include "wpi/hal/PWM.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
@@ -6,12 +6,9 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_PortsJNI.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
|
||||
using namespace wpi::hal;
|
||||
|
||||
extern "C" {
|
||||
/*
|
||||
* Class: org_wpilib_hardware_hal_PortsJNI
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_PowerDistributionJNI.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/PowerDistribution.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
|
||||
@@ -6,9 +6,7 @@
|
||||
|
||||
#include "HALUtil.hpp"
|
||||
#include "org_wpilib_hardware_hal_REVPHJNI.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/REVPH.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
static_assert(
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
#include <jni.h>
|
||||
|
||||
#include "SimulatorJNI.hpp"
|
||||
#include "wpi/hal/Types.h"
|
||||
#include "wpi/hal/Value.h"
|
||||
#include "wpi/hal/handles/UnlimitedHandleResource.hpp"
|
||||
#include "wpi/hal/simulation/NotifyListener.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "SimulatorJNI.hpp"
|
||||
#include "wpi/hal/Types.h"
|
||||
#include "wpi/hal/Value.h"
|
||||
#include "wpi/hal/handles/UnlimitedHandleResource.hpp"
|
||||
#include "wpi/hal/simulation/NotifyListener.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include "wpi/hal/CANAPI.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <memory>
|
||||
|
||||
#include "HALInitializer.hpp"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "HALInitializer.hpp"
|
||||
#include "PortsInternal.hpp"
|
||||
#include "mockdata/CTREPCMDataInternal.hpp"
|
||||
#include "wpi/hal/ErrorHandling.hpp"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/IndexedHandleResource.hpp"
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "HALInitializer.hpp"
|
||||
#include "PortsInternal.hpp"
|
||||
#include "mockdata/DutyCycleDataInternal.hpp"
|
||||
#include "wpi/hal/ErrorHandling.hpp"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.hpp"
|
||||
#include "wpi/hal/handles/IndexedHandleResource.hpp"
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "NotifierInternal.hpp"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/Threads.h"
|
||||
#include "wpi/hal/Types.h"
|
||||
#include "wpi/hal/handles/UnlimitedHandleResource.hpp"
|
||||
#include "wpi/hal/simulation/NotifierData.h"
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
#include "wpi/hal/PowerDistribution.h"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "CANAPIInternal.hpp"
|
||||
#include "HALInitializer.hpp"
|
||||
#include "PortsInternal.hpp"
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "DriverStationDataInternal.hpp"
|
||||
#include "wpi/hal/DashboardOpMode.hpp"
|
||||
#include "wpi/hal/DriverStationTypes.h"
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <cstring>
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "AddressableLEDSimd.hpp"
|
||||
#include "HALInitializer.hpp"
|
||||
#include "PortsInternal.hpp"
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <cstdio>
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "HALInitializer.hpp"
|
||||
#include "PortsInternal.hpp"
|
||||
#include "SmartIo.hpp"
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
#include "wpi/hal/Encoder.h"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "HALInitializer.hpp"
|
||||
#include "wpi/hal/Errors.h"
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "HALInitializer.hpp"
|
||||
#include "PortsInternal.hpp"
|
||||
#include "rev/PDHFrames.h"
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/hal/Errors.h"
|
||||
|
||||
namespace wpi::hal::init {
|
||||
|
||||
Reference in New Issue
Block a user