Skip to content

Commit 9863284

Browse files
committed
all: Remove outdated ifndef-define-endif header guards
1 parent c234f50 commit 9863284

File tree

108 files changed

+9
-415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+9
-415
lines changed

engine/src/plugins/nop_controller.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
*/
2222

2323
#pragma once
24-
#ifndef CLOE_CONTROLLER_NOP_HPP_
25-
#define CLOE_CONTROLLER_NOP_HPP_
2624

2725
#include <cloe/controller.hpp> // for DEFINE_CONTROLLER_FACTORY, Json, ...
2826

@@ -42,5 +40,3 @@ DEFINE_CONTROLLER_FACTORY(NopFactory, NopConfiguration, "nop", "stand-in that do
4240

4341
} // namespace controller
4442
} // namespace cloe
45-
46-
#endif // CLOE_CONTROLLER_NOP_HPP_

engine/src/plugins/nop_simulator.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
*/
2222

2323
#pragma once
24-
#ifndef CLOE_SIMULATOR_NOP_HPP_
25-
#define CLOE_SIMULATOR_NOP_HPP_
2624

2725
#include <memory> // for unique_ptr<>
2826
#include <string> // for string
@@ -53,5 +51,3 @@ DEFINE_SIMULATOR_FACTORY(NopFactory, NopConfiguration, "nop", "stand-in no-opera
5351

5452
} // namespace simulator
5553
} // namespace cloe
56-
57-
#endif // CLOE_SIMULATOR_NOP_HPP_

engine/src/utility/defer.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* \file defer.hpp
2020
*/
2121

22+
#pragma once
23+
2224
#include <functional> // for function<>
2325

2426
namespace engine {

fable/include/fable/conf.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
*/
5050

5151
#pragma once
52-
#ifndef FABLE_CONF_HPP_
53-
#define FABLE_CONF_HPP_
5452

5553
#include <functional> // for function<>
5654
#include <string> // for string
@@ -348,5 +346,3 @@ class Conf {
348346
};
349347

350348
} // namespace fable
351-
352-
#endif // FABLE_CONF_HPP_

fable/include/fable/confable.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*/
2323

2424
#pragma once
25-
#ifndef FABLE_CONFABLE_HPP_
26-
#define FABLE_CONFABLE_HPP_
2725

2826
#include <memory> // for unique_ptr<>
2927

@@ -138,5 +136,3 @@ struct adl_serializer<fable::Confable> {
138136
};
139137

140138
} // namespace nlohmann
141-
142-
#endif // FABLE_CONFABLE_HPP_

fable/include/fable/enum.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
*/
2222

2323
#pragma once
24-
#ifndef FABLE_ENUM_HPP_
25-
#define FABLE_ENUM_HPP_
2624

2725
#include <map> // for map<>
2826
#include <string> // for string
@@ -172,5 +170,3 @@ T from_string(const std::string& s) {
172170
}
173171

174172
} // namespace fable
175-
176-
#endif // FABLE_ENUM_HPP_

fable/include/fable/environment.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*/
2323

2424
#pragma once
25-
#ifndef FABLE_ENVIRONMENT_HPP_
26-
#define FABLE_ENVIRONMENT_HPP_
2725

2826
#include <cassert> // for assert
2927
#include <map> // for map<>
@@ -134,5 +132,3 @@ inline std::string interpolate_vars(const std::string& s, const Environment* env
134132
}
135133

136134
} // namespace fable
137-
138-
#endif // FABLE_ENVIRONMENT_HPP_

fable/include/fable/error.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*/
2121

2222
#pragma once
23-
#ifndef FABLE_ERROR_HPP_
24-
#define FABLE_ERROR_HPP_
2523

2624
#include <stdexcept> // for exception
2725
#include <string> // for string
@@ -154,5 +152,3 @@ class SchemaError : public ConfError {
154152
};
155153

156154
} // namespace fable
157-
158-
#endif // FABLE_ERROR_HPP_

fable/include/fable/fable.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
*/
2525

2626
#pragma once
27-
#ifndef FABLE_FABLE_HPP_
28-
#define FABLE_FABLE_HPP_
2927

3028
#include <fable/conf.hpp>
3129
#include <fable/confable.hpp>
@@ -34,5 +32,3 @@
3432
#include <fable/json.hpp>
3533
#include <fable/json/with_std.hpp>
3634
#include <fable/schema.hpp>
37-
38-
#endif // FABLE_FABLE_HPP_

fable/include/fable/json.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424

2525
#pragma once
26-
#ifndef FABLE_JSON_HPP_
27-
#define FABLE_JSON_HPP_
2826

2927
#include <string> // for string
3028

@@ -108,5 +106,3 @@ inline Json parse_json(InputType&& input) {
108106
}
109107

110108
} // namespace fable
111-
112-
#endif // FABLE_JSON_HPP_

0 commit comments

Comments
 (0)