diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2021-06-21 12:41:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 19:41:00 +0000 |
commit | b1db68565a42bc22744cf38e95da6cbe8368c19b (patch) | |
tree | cbc1f017578712a147a52d27c12488a03ba231b7 /test | |
parent | 331187d557b2c54b079de6348ff1f597a72f50a2 (diff) |
[Attributes] Remove parameter `context_dependent` (#6772)
After commit d70a63324c95210f1d78c2efc46395d2369d2e2b, context-dependent
attributes have not been supported and, as a result, the template
parameter `context_dependent` of `Attribute` has not been used.
Context-dependent attributes also do not fit with our current design of
sharing attributes across different solvers, so it is unlikely that we
will add that feature back in the future. This commit removes the unused
template parameter.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/node/attribute_white.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/node/attribute_white.cpp b/test/unit/node/attribute_white.cpp index fe74130d1..4b0f1892f 100644 --- a/test/unit/node/attribute_white.cpp +++ b/test/unit/node/attribute_white.cpp @@ -78,7 +78,7 @@ TEST_F(TestNodeWhiteAttribute, attribute_ids) // and that the next ID to be assigned is strictly greater than // those that have already been assigned. - unsigned lastId = attr::LastAttributeId<std::string, false>::getId(); + unsigned lastId = attr::LastAttributeId<std::string>::getId(); ASSERT_LT(VarNameAttr::s_id, lastId); ASSERT_LT(TestStringAttr1::s_id, lastId); ASSERT_LT(TestStringAttr2::s_id, lastId); @@ -87,7 +87,7 @@ TEST_F(TestNodeWhiteAttribute, attribute_ids) ASSERT_NE(VarNameAttr::s_id, TestStringAttr2::s_id); ASSERT_NE(TestStringAttr1::s_id, TestStringAttr2::s_id); - lastId = attr::LastAttributeId<bool, false>::getId(); + lastId = attr::LastAttributeId<bool>::getId(); ASSERT_LT(TestFlag1::s_id, lastId); ASSERT_LT(TestFlag2::s_id, lastId); ASSERT_LT(TestFlag3::s_id, lastId); @@ -104,7 +104,7 @@ TEST_F(TestNodeWhiteAttribute, attribute_ids) ASSERT_NE(TestFlag3::s_id, TestFlag5::s_id); ASSERT_NE(TestFlag4::s_id, TestFlag5::s_id); - lastId = attr::LastAttributeId<TypeNode, false>::getId(); + lastId = attr::LastAttributeId<TypeNode>::getId(); ASSERT_LT(TypeAttr::s_id, lastId); } |