diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-25 01:58:12 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-20 15:12:26 +0300 |
commit | 9dacead6156f6083f7e0a148f228a7e1ebb4d5a3 (patch) | |
tree | 521e146636c9c37dc1212aa513becea1d511459b /test/yaml-parser.cpp | |
parent | 12bf40414776e4acb1b1b2d2a1c429a564a7d504 (diff) |
libcamera: yaml_parser: Remove memberNames() function
Now that YamlObject supports iteration, the memberNames() function isn't
useful anymore as it can be implemented using utils::map_keys() if
really needed. Drop it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Han-Lin Chen <hanlinchen@chromium.org>
Diffstat (limited to 'test/yaml-parser.cpp')
-rw-r--r-- | test/yaml-parser.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/yaml-parser.cpp b/test/yaml-parser.cpp index ab6e9a01..38f84823 100644 --- a/test/yaml-parser.cpp +++ b/test/yaml-parser.cpp @@ -500,16 +500,6 @@ protected: /* Make sure utils::map_keys() works on the adapter. */ (void)utils::map_keys(dictObj.asDict()); - auto memeberNames = dictObj.memberNames(); - sort(memeberNames.begin(), memeberNames.end()); - - if (memeberNames[0] != "a" || - memeberNames[1] != "b" || - memeberNames[2] != "c") { - cerr << "Dictionary object fail to parse member names" << std::endl; - return TestFail; - } - /* Test leveled objects */ auto &level1Obj = (*root)["level1"]; |