Merge pull request #2491 from joakim-hove/remove-unused

Remove unused variables
This commit is contained in:
Bård Skaflestad
2021-05-28 17:37:25 +02:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -651,7 +651,7 @@ BOOST_AUTO_TEST_CASE(TestWLIST) {
Action::Context context(st, wlm);
auto& wl = wlm.newList("*LIST1", {"W1", "W3", "W5"});
wlm.newList("*LIST1", {"W1", "W3", "W5"});
auto res = ast.eval(context);
auto wells = res.wells();
BOOST_CHECK(res);

View File

@@ -75,9 +75,7 @@ BOOST_AUTO_TEST_CASE(WLISTManager) {
BOOST_CHECK(!wlm.hasList("NO_SUCH_LIST"));
{
auto& wlist1 = wlm.newList("LIST1", {"A", "B", "C"});
}
wlm.newList("LIST1", {"A", "B", "C"});
// If a new list is added with the same name as an existing list the old
// list is dropped and a new list is created.