kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #19468
[PATCH 1/3] Remove superfluous includes
These are unnecessary:
- in math_util.cpp, including <stdint.h> is unnecessary because math_util.h
already requires it
- in the other two headers, no definitions from <stdint.h> are used.
---
common/math/math_util.cpp | 1 -
include/layers_id_colors_and_visibility.h | 1 -
include/profile.h | 1 -
3 files changed, 3 deletions(-)
diff --git a/common/math/math_util.cpp b/common/math/math_util.cpp
index 81dafc3..604b879 100644
--- a/common/math/math_util.cpp
+++ b/common/math/math_util.cpp
@@ -27,7 +27,6 @@
#include <cstdlib>
#include <climits>
#include <math/math_util.h>
-#include <stdint.h>
template<>
int rescale( int aNumerator, int aValue, int aDenominator )
diff --git a/include/layers_id_colors_and_visibility.h b/include/layers_id_colors_and_visibility.h
index 7415e42..dcce017 100644
--- a/include/layers_id_colors_and_visibility.h
+++ b/include/layers_id_colors_and_visibility.h
@@ -31,7 +31,6 @@
#ifndef LAYERS_ID_AND_VISIBILITY_H_
#define LAYERS_ID_AND_VISIBILITY_H_
-#include <stdint.h>
#include <vector>
#include <bitset>
#include <wx/string.h>
diff --git a/include/profile.h b/include/profile.h
index 4035fcb..acf9166 100644
--- a/include/profile.h
+++ b/include/profile.h
@@ -31,7 +31,6 @@
#define __TPROFILE_H
#include <sys/time.h>
-#include <string>
#include <stdint.h>
/**
Follow ups
References