From 5609f32cee4c5aba9b8ad6a3861880f9442e8fd2 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Mon, 17 May 2021 16:31:31 +0800 Subject: [PATCH] Cleanup includes (#20925) * remove #include * remove #include for cc files * remove #include old-commit-hash: 0495426535490e7d8d503af35ace7a20dc70a7bb --- selfdrive/boardd/boardd.cc | 1 - selfdrive/boardd/panda.cc | 1 - selfdrive/boardd/panda.h | 2 -- selfdrive/camerad/cameras/camera_common.h | 1 - selfdrive/camerad/cameras/camera_frame_stream.h | 2 -- selfdrive/camerad/cameras/camera_qcom.cc | 2 -- selfdrive/camerad/cameras/camera_qcom.h | 2 -- selfdrive/camerad/cameras/camera_qcom2.h | 1 - selfdrive/camerad/cameras/camera_webcam.cc | 1 - selfdrive/camerad/cameras/camera_webcam.h | 2 -- selfdrive/common/gpio.h | 2 -- selfdrive/locationd/ublox_msg.cc | 1 - selfdrive/logcatd/logcatd_systemd.cc | 1 - selfdrive/loggerd/logger.cc | 1 - selfdrive/loggerd/omx_encoder.cc | 1 - selfdrive/loggerd/omx_encoder.h | 1 - selfdrive/modeld/transforms/loadyuv.h | 1 - selfdrive/modeld/transforms/transform.h | 1 - selfdrive/sensord/sensors/file_sensor.cc | 1 - selfdrive/sensord/sensors/i2c_sensor.cc | 2 -- selfdrive/sensord/sensors/light_sensor.cc | 1 - selfdrive/ui/qt/offroad/settings.cc | 2 -- selfdrive/ui/qt/offroad/wifiManager.cc | 1 - selfdrive/ui/ui.cc | 1 - selfdrive/ui/ui.h | 1 - 25 files changed, 33 deletions(-) diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index 1b36acbbbf..6a6e775e23 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -13,7 +13,6 @@ #include #include #include -#include #include #include diff --git a/selfdrive/boardd/panda.cc b/selfdrive/boardd/panda.cc index bf4f56c50e..1b563b53d6 100644 --- a/selfdrive/boardd/panda.cc +++ b/selfdrive/boardd/panda.cc @@ -3,7 +3,6 @@ #include #include -#include #include #include diff --git a/selfdrive/boardd/panda.h b/selfdrive/boardd/panda.h index 4eca7cc38f..c10e3d995e 100644 --- a/selfdrive/boardd/panda.h +++ b/selfdrive/boardd/panda.h @@ -1,7 +1,5 @@ #pragma once -#include - #include #include #include diff --git a/selfdrive/camerad/cameras/camera_common.h b/selfdrive/camerad/cameras/camera_common.h index 337d33bdd2..ab3efce286 100644 --- a/selfdrive/camerad/cameras/camera_common.h +++ b/selfdrive/camerad/cameras/camera_common.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include diff --git a/selfdrive/camerad/cameras/camera_frame_stream.h b/selfdrive/camerad/cameras/camera_frame_stream.h index 4a85126539..0d4d8cfb42 100644 --- a/selfdrive/camerad/cameras/camera_frame_stream.h +++ b/selfdrive/camerad/cameras/camera_frame_stream.h @@ -1,7 +1,5 @@ #pragma once -#include - #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #ifdef __APPLE__ #include diff --git a/selfdrive/camerad/cameras/camera_qcom.cc b/selfdrive/camerad/cameras/camera_qcom.cc index 7d5b1611c8..aa386e5c83 100644 --- a/selfdrive/camerad/cameras/camera_qcom.cc +++ b/selfdrive/camerad/cameras/camera_qcom.cc @@ -4,8 +4,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/selfdrive/camerad/cameras/camera_qcom.h b/selfdrive/camerad/cameras/camera_qcom.h index 55792c4ff6..1bcfed2058 100644 --- a/selfdrive/camerad/cameras/camera_qcom.h +++ b/selfdrive/camerad/cameras/camera_qcom.h @@ -1,7 +1,5 @@ #pragma once -#include -#include #include #include diff --git a/selfdrive/camerad/cameras/camera_qcom2.h b/selfdrive/camerad/cameras/camera_qcom2.h index ac37f557a9..851dab9f41 100644 --- a/selfdrive/camerad/cameras/camera_qcom2.h +++ b/selfdrive/camerad/cameras/camera_qcom2.h @@ -1,7 +1,6 @@ #pragma once #include -#include #include #include diff --git a/selfdrive/camerad/cameras/camera_webcam.cc b/selfdrive/camerad/cameras/camera_webcam.cc index 1fd94d569e..f4204146c8 100644 --- a/selfdrive/camerad/cameras/camera_webcam.cc +++ b/selfdrive/camerad/cameras/camera_webcam.cc @@ -1,7 +1,6 @@ #include "selfdrive/camerad/cameras/camera_webcam.h" #include -#include #include #include diff --git a/selfdrive/camerad/cameras/camera_webcam.h b/selfdrive/camerad/cameras/camera_webcam.h index 7fc8309418..819387f3d6 100644 --- a/selfdrive/camerad/cameras/camera_webcam.h +++ b/selfdrive/camerad/cameras/camera_webcam.h @@ -1,7 +1,5 @@ #pragma once -#include - #ifdef __APPLE__ #include #else diff --git a/selfdrive/common/gpio.h b/selfdrive/common/gpio.h index f501342690..e030019875 100644 --- a/selfdrive/common/gpio.h +++ b/selfdrive/common/gpio.h @@ -1,7 +1,5 @@ #pragma once -#include - // Pin definitions #ifdef QCOM2 #define GPIO_HUB_RST_N 30 diff --git a/selfdrive/locationd/ublox_msg.cc b/selfdrive/locationd/ublox_msg.cc index 064d4f90d7..c84976fea8 100644 --- a/selfdrive/locationd/ublox_msg.cc +++ b/selfdrive/locationd/ublox_msg.cc @@ -8,7 +8,6 @@ #include #include #include -#include #include #include "selfdrive/common/swaglog.h" diff --git a/selfdrive/logcatd/logcatd_systemd.cc b/selfdrive/logcatd/logcatd_systemd.cc index 61d6cb9b0e..6e140e4b50 100644 --- a/selfdrive/logcatd/logcatd_systemd.cc +++ b/selfdrive/logcatd/logcatd_systemd.cc @@ -2,7 +2,6 @@ #include #include -#include #include #include diff --git a/selfdrive/loggerd/logger.cc b/selfdrive/loggerd/logger.cc index 72bb4cb627..5cd7da4a3f 100644 --- a/selfdrive/loggerd/logger.cc +++ b/selfdrive/loggerd/logger.cc @@ -2,7 +2,6 @@ #include #include -#include #include #include #include diff --git a/selfdrive/loggerd/omx_encoder.cc b/selfdrive/loggerd/omx_encoder.cc index 6891d47d55..cd10bae9e8 100644 --- a/selfdrive/loggerd/omx_encoder.cc +++ b/selfdrive/loggerd/omx_encoder.cc @@ -4,7 +4,6 @@ #include #include -#include #include #include #include diff --git a/selfdrive/loggerd/omx_encoder.h b/selfdrive/loggerd/omx_encoder.h index 271ef113ef..caa87101d1 100644 --- a/selfdrive/loggerd/omx_encoder.h +++ b/selfdrive/loggerd/omx_encoder.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include diff --git a/selfdrive/modeld/transforms/loadyuv.h b/selfdrive/modeld/transforms/loadyuv.h index 0153815cc3..7289aeff46 100644 --- a/selfdrive/modeld/transforms/loadyuv.h +++ b/selfdrive/modeld/transforms/loadyuv.h @@ -1,7 +1,6 @@ #pragma once #include -#include #include "selfdrive/common/clutil.h" diff --git a/selfdrive/modeld/transforms/transform.h b/selfdrive/modeld/transforms/transform.h index f46096bb0f..4a40b976a2 100644 --- a/selfdrive/modeld/transforms/transform.h +++ b/selfdrive/modeld/transforms/transform.h @@ -1,7 +1,6 @@ #pragma once #include -#include #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #ifdef __APPLE__ diff --git a/selfdrive/sensord/sensors/file_sensor.cc b/selfdrive/sensord/sensors/file_sensor.cc index a0ec1d71d1..b993349e83 100644 --- a/selfdrive/sensord/sensors/file_sensor.cc +++ b/selfdrive/sensord/sensors/file_sensor.cc @@ -1,6 +1,5 @@ #include "file_sensor.h" -#include #include FileSensor::FileSensor(std::string filename) : file(filename) { diff --git a/selfdrive/sensord/sensors/i2c_sensor.cc b/selfdrive/sensord/sensors/i2c_sensor.cc index 64a970c59a..0e7b8ef986 100644 --- a/selfdrive/sensord/sensors/i2c_sensor.cc +++ b/selfdrive/sensord/sensors/i2c_sensor.cc @@ -1,7 +1,5 @@ #include "i2c_sensor.h" -#include - int16_t read_12_bit(uint8_t lsb, uint8_t msb){ uint16_t combined = (uint16_t(msb) << 8) | uint16_t(lsb & 0xF0); return int16_t(combined) / (1 << 4); diff --git a/selfdrive/sensord/sensors/light_sensor.cc b/selfdrive/sensord/sensors/light_sensor.cc index 80930e0754..9601a78182 100644 --- a/selfdrive/sensord/sensors/light_sensor.cc +++ b/selfdrive/sensord/sensors/light_sensor.cc @@ -1,6 +1,5 @@ #include "light_sensor.h" -#include #include #include "selfdrive/common/timing.h" diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 06c3a36715..6085e8b0e5 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -1,8 +1,6 @@ #include "settings.h" #include -#include -#include #include #ifndef QCOM diff --git a/selfdrive/ui/qt/offroad/wifiManager.cc b/selfdrive/ui/qt/offroad/wifiManager.cc index d7ff5bddb2..7ffaccb1c1 100644 --- a/selfdrive/ui/qt/offroad/wifiManager.cc +++ b/selfdrive/ui/qt/offroad/wifiManager.cc @@ -3,7 +3,6 @@ #include #include -#include #include #include "selfdrive/common/params.h" diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index fbf31960a3..654cb17839 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -5,7 +5,6 @@ #include #include -#include #include "selfdrive/common/swaglog.h" #include "selfdrive/common/util.h" diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index f8ae859a96..48b212a977 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -3,7 +3,6 @@ #include #include #include -#include #include #include