Skip to content

Commit 336e1af

Browse files
committed
remove unnecessary header guards protected by pragma once
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
1 parent 1d6d133 commit 336e1af

File tree

6 files changed

+1
-21
lines changed

6 files changed

+1
-21
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: black-jupyter
1818
- repo: https://github.com/pre-commit/mirrors-mypy
19-
rev: v1.11.2
19+
rev: v1.13.0
2020
hooks:
2121
- id: mypy
2222
additional_dependencies:

tests/cpp_unit_tests/test_math_solver_common.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// In this unit test the powerflow solvers are tested
66

77
#pragma once
8-
#ifndef POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_COMMON_HPP
9-
#define POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_COMMON_HPP
108

119
#include <power_grid_model/calculation_parameters.hpp>
1210
#include <power_grid_model/common/exception.hpp>
@@ -269,5 +267,3 @@ template <symmetry_tag sym_type> struct SteadyStateSolverTestGrid {
269267
};
270268

271269
} // namespace power_grid_model
272-
273-
#endif // POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_COMMON_HPP

tests/cpp_unit_tests/test_math_solver_pf.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// In this unit test the powerflow solvers are tested
66

77
#pragma once
8-
#ifndef POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_PF_HPP
9-
#define POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_PF_HPP
108

119
#include "test_math_solver_common.hpp"
1210

@@ -146,5 +144,3 @@ TEST_CASE_TEMPLATE_DEFINE("Test math solver - PF", SolverType, test_math_solver_
146144
}
147145

148146
} // namespace power_grid_model
149-
150-
#endif // POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_PF_HPP

tests/cpp_unit_tests/test_math_solver_se.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// In this unit test the powerflow solvers are tested
66

77
#pragma once
8-
#ifndef POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_SE_HPP
9-
#define POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_SE_HPP
108

119
#include "test_math_solver_common.hpp"
1210

@@ -520,5 +518,3 @@ TEST_CASE_TEMPLATE_DEFINE("Test math solver - SE, measurements", SolverType, tes
520518
}
521519

522520
} // namespace power_grid_model
523-
524-
#endif // POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_MATH_SOLVER_SE_HPP

tests/cpp_unit_tests/test_optimizer.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// SPDX-License-Identifier: MPL-2.0
44

55
#pragma once
6-
#ifndef POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_OPTIMIZER_HPP
7-
#define POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_OPTIMIZER_HPP
86

97
#include <power_grid_model/auxiliary/meta_data.hpp>
108
#include <power_grid_model/auxiliary/meta_gen/gen_getters.hpp>
@@ -250,5 +248,3 @@ template <> struct get_attributes_list<optimizer::test::StubTransformerUpdate> {
250248
};
251249
} // namespace meta_data
252250
} // namespace power_grid_model
253-
254-
#endif // POWER_GRID_MODEL_TESTS_CPP_UNIT_TESTS_TEST_OPTIMIZER_HPP

tests/native_api_tests/load_dataset.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// SPDX-License-Identifier: MPL-2.0
44

55
#pragma once
6-
#ifndef POWER_GRID_MODEL_TESTS_NATIVE_API_TESTS_LOAD_DATASET_HPP
7-
#define POWER_GRID_MODEL_TESTS_NATIVE_API_TESTS_LOAD_DATASET_HPP
86

97
#include <power_grid_model_cpp/serialization.hpp>
108

@@ -17,5 +15,3 @@ inline power_grid_model_cpp::OwningDataset load_dataset(std::string const& json_
1715
return owning_dataset;
1816
}
1917
} // namespace power_grid_model_cpp_test
20-
21-
#endif // POWER_GRID_MODEL_TESTS_NATIVE_API_TESTS_LOAD_DATASET_HPP

0 commit comments

Comments
 (0)