From ba4c0812e95c5027d5221db5afa551e56392fb4d Mon Sep 17 00:00:00 2001 From: Derek Slaughter Date: Thu, 9 Jan 2025 18:45:58 -0500 Subject: [PATCH] clang-tidy fixes --- src/elements/beams/beam_element.hpp | 5 +---- src/elements/masses/mass_element.hpp | 2 +- src/model/model.hpp | 8 -------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/elements/beams/beam_element.hpp b/src/elements/beams/beam_element.hpp index d90d4047..f1fc0fc2 100644 --- a/src/elements/beams/beam_element.hpp +++ b/src/elements/beams/beam_element.hpp @@ -23,10 +23,7 @@ struct BeamElement { BeamQuadrature quadrature; // Element quadrature points and weights BeamElement(size_t id, std::vector n, std::vector s, BeamQuadrature q) - : ID(std::move(id)), - node_ids(std::move(n)), - sections(std::move(s)), - quadrature(std::move(q)) {} + : ID(id), node_ids(std::move(n)), sections(std::move(s)), quadrature(std::move(q)) {} }; } // namespace openturbine diff --git a/src/elements/masses/mass_element.hpp b/src/elements/masses/mass_element.hpp index 8898ed46..d280be3a 100644 --- a/src/elements/masses/mass_element.hpp +++ b/src/elements/masses/mass_element.hpp @@ -14,7 +14,7 @@ struct MassElement { std::array, 6> M_star; // Mass matrix in material frame MassElement(size_t id, size_t n_id, std::array, 6> mass_matrix) - : ID(std::move(id)), node_id(n_id), M_star(mass_matrix) {} + : ID(id), node_id(n_id), M_star(mass_matrix) {} }; } // namespace openturbine diff --git a/src/model/model.hpp b/src/model/model.hpp index 3b42e433..f36047e4 100644 --- a/src/model/model.hpp +++ b/src/model/model.hpp @@ -26,14 +26,6 @@ namespace openturbine { -struct Solution { - State state; - Elements elements; - Constraints constraints; - StepParameters parameters; - Solver solver; -}; - /// Represents an invalid node in constraints that only uses the target node static const size_t InvalidNodeID(0U);