Cleanup includes (#20925)

* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
This commit is contained in:
Dean Lee
2021-05-17 16:31:31 +08:00
committed by GitHub
parent 243bec3444
commit 0495426535
25 changed files with 0 additions and 33 deletions
-1
View File
@@ -13,7 +13,6 @@
#include <bitset>
#include <cassert>
#include <ctime>
#include <iostream>
#include <thread>
#include <unordered_map>
-1
View File
@@ -3,7 +3,6 @@
#include <unistd.h>
#include <cassert>
#include <iostream>
#include <stdexcept>
#include <vector>
-2
View File
@@ -1,7 +1,5 @@
#pragma once
#include <pthread.h>
#include <atomic>
#include <cstdint>
#include <ctime>
@@ -1,6 +1,5 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
@@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
-2
View File
@@ -4,8 +4,6 @@
#include <fcntl.h>
#include <math.h>
#include <poll.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <unistd.h>
-2
View File
@@ -1,7 +1,5 @@
#pragma once
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include <atomic>
-1
View File
@@ -1,7 +1,6 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <pthread.h>
#include <media/cam_req_mgr.h>
@@ -1,7 +1,6 @@
#include "selfdrive/camerad/cameras/camera_webcam.h"
#include <assert.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>
@@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else
-2
View File
@@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
// Pin definitions
#ifdef QCOM2
#define GPIO_HUB_RST_N 30
-1
View File
@@ -8,7 +8,6 @@
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <unordered_map>
#include "selfdrive/common/swaglog.h"
-1
View File
@@ -2,7 +2,6 @@
#include <cassert>
#include <csignal>
#include <iostream>
#include <map>
#include <string>
-1
View File
@@ -2,7 +2,6 @@
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-1
View File
@@ -4,7 +4,6 @@
#include <assert.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
-1
View File
@@ -1,6 +1,5 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
-1
View File
@@ -1,7 +1,6 @@
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#include "selfdrive/common/clutil.h"
-1
View File
@@ -1,7 +1,6 @@
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
-1
View File
@@ -1,6 +1,5 @@
#include "file_sensor.h"
#include <iostream>
#include <string>
FileSensor::FileSensor(std::string filename) : file(filename) {
-2
View File
@@ -1,7 +1,5 @@
#include "i2c_sensor.h"
#include <iostream>
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);
@@ -1,6 +1,5 @@
#include "light_sensor.h"
#include <iostream>
#include <string>
#include "selfdrive/common/timing.h"
-2
View File
@@ -1,8 +1,6 @@
#include "settings.h"
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#ifndef QCOM
-1
View File
@@ -3,7 +3,6 @@
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <set>
#include "selfdrive/common/params.h"
-1
View File
@@ -5,7 +5,6 @@
#include <unistd.h>
#include <cmath>
#include <iostream>
#include "selfdrive/common/swaglog.h"
#include "selfdrive/common/util.h"
-1
View File
@@ -3,7 +3,6 @@
#include <atomic>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <QObject>