Skip to content

Commit 8306ed8

Browse files
authored
Remove superflous iostreams include from header files (#6901)
1 parent 640df69 commit 8306ed8

17 files changed

+15
-30
lines changed

include/nodejs/node_osrm_support.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <boost/optional.hpp>
2525

2626
#include <algorithm>
27-
#include <iostream>
2827
#include <iterator>
2928
#include <sstream>
3029
#include <stdexcept>

include/storage/io.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include <cerrno>
2020
#include <cstring>
21+
#include <iostream>
2122
#include <tuple>
2223
#include <type_traits>
2324

include/util/debug.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "util/typedefs.hpp"
1313

1414
#include <iomanip>
15-
#include <iostream>
15+
#include <ostream>
1616
#include <sstream>
1717
#include <string>
1818
#include <vector>

include/util/exception.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030

3131
#include <array>
3232
#include <exception>
33-
#include <iostream>
3433
#include <string>
3534
#include <utility>
3635

include/util/exception_utils.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#ifndef SOURCE_MACROS_HPP
2-
#define SOURCE_MACROS_HPP
1+
#ifndef EXCEPTION_UTILS_HPP
2+
#define EXCEPTION_UTILS_HPP
3+
34
#include <cstring>
5+
#include <string>
46

57
// Helper macros, don't use these ones
68
// STRIP the OSRM_PROJECT_DIR from the front of a filename. Expected to come
@@ -12,4 +14,4 @@
1214
// This is the macro to use
1315
#define SOURCE_REF (OSRM_SOURCE_FILE_ + ":" + std::to_string(__LINE__))
1416

15-
#endif // SOURCE_MACROS_HPP
17+
#endif // EXCEPTION_UTILS_HPP

include/util/lua_util.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extern "C"
1010

1111
#include <boost/filesystem.hpp>
1212

13-
#include <iostream>
1413
#include <string>
1514

1615
namespace osrm::util

include/util/node_based_graph.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <tbb/parallel_sort.h>
1111

12-
#include <iostream>
1312
#include <memory>
1413
#include <utility>
1514

src/benchmarks/packed_vector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <algorithm>
77
#include <iomanip>
8+
#include <iostream>
89
#include <numeric>
910
#include <random>
1011
#include <string>

src/extractor/compressed_edge_container.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include <limits>
1010
#include <string>
1111

12-
#include <iostream>
13-
1412
namespace osrm::extractor
1513
{
1614

src/extractor/extractor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
#include <atomic>
5151
#include <bitset>
5252
#include <chrono>
53-
#include <iostream>
5453
#include <memory>
5554
#include <thread>
5655
#include <tuple>

0 commit comments

Comments
 (0)