Cleanup includes (#20925)

* remove #include <pthread.h>

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

* remove #include<iostream>
albatross
Dean Lee 2021-05-17 16:31:31 +08:00 committed by GitHub
parent 243bec3444
commit 0495426535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 0 additions and 33 deletions

View File

@ -13,7 +13,6 @@
#include <bitset>
#include <cassert>
#include <ctime>
#include <iostream>
#include <thread>
#include <unordered_map>

View File

@ -3,7 +3,6 @@
#include <unistd.h>
#include <cassert>
#include <iostream>
#include <stdexcept>
#include <vector>

View File

@ -1,7 +1,5 @@
#pragma once
#include <pthread.h>
#include <atomic>
#include <cstdint>
#include <ctime>

View File

@ -1,6 +1,5 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>

View File

@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>

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>

View File

@ -1,7 +1,5 @@
#pragma once
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include <atomic>

View File

@ -1,7 +1,6 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <pthread.h>
#include <media/cam_req_mgr.h>

View File

@ -1,7 +1,6 @@
#include "selfdrive/camerad/cameras/camera_webcam.h"
#include <assert.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>

View File

@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

View File

@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
// Pin definitions
#ifdef QCOM2
#define GPIO_HUB_RST_N 30

View File

@ -8,7 +8,6 @@
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <unordered_map>
#include "selfdrive/common/swaglog.h"

View File

@ -2,7 +2,6 @@
#include <cassert>
#include <csignal>
#include <iostream>
#include <map>
#include <string>

View File

@ -2,7 +2,6 @@
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

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>

View File

@ -1,6 +1,5 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

View File

@ -1,7 +1,6 @@
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#include "selfdrive/common/clutil.h"

View File

@ -1,7 +1,6 @@
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__

View File

@ -1,6 +1,5 @@
#include "file_sensor.h"
#include <iostream>
#include <string>
FileSensor::FileSensor(std::string filename) : file(filename) {

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);

View File

@ -1,6 +1,5 @@
#include "light_sensor.h"
#include <iostream>
#include <string>
#include "selfdrive/common/timing.h"

View File

@ -1,8 +1,6 @@
#include "settings.h"
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#ifndef QCOM

View File

@ -3,7 +3,6 @@
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <set>
#include "selfdrive/common/params.h"

View File

@ -5,7 +5,6 @@
#include <unistd.h>
#include <cmath>
#include <iostream>
#include "selfdrive/common/swaglog.h"
#include "selfdrive/common/util.h"

View File

@ -3,7 +3,6 @@
#include <atomic>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <QObject>