Skip to content

Commit

Permalink
[issue1134] Remove redundant string initialization and make variable …
Browse files Browse the repository at this point in the history
…explicitily unused.
  • Loading branch information
remochristen committed Feb 6, 2024
1 parent 5596fbe commit ff9e91c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/algorithms/named_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class NamedVector {
All unspecified names are empty by default. We use a static
string here to avoid returning a reference to a local object.
*/
static std::string empty = "";
static std::string empty;
return empty;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ DeleteRelaxationConstraintsRR::create_auxiliary_variables(
void DeleteRelaxationConstraintsRR::create_auxiliary_variables_ve(
const TaskProxy &task_proxy, const VEGraph &ve_graph, LPVariables &variables,
DeleteRelaxationConstraintsRR::LPVariableIDs &lp_var_ids) const {
utils::unused_variable(task_proxy);
// Add e_{i,j} variables.
for (pair<FactPair, FactPair> edge : ve_graph.get_edges()) {
lp_var_ids.e_ids[edge] = variables.size();
Expand Down

0 comments on commit ff9e91c

Please sign in to comment.