diff options
Diffstat (limited to 'mv_common/src/mv_feature_key.cpp')
-rw-r--r-- | mv_common/src/mv_feature_key.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/mv_common/src/mv_feature_key.cpp b/mv_common/src/mv_feature_key.cpp index e8638bfb..36777487 100644 --- a/mv_common/src/mv_feature_key.cpp +++ b/mv_common/src/mv_feature_key.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,22 +15,8 @@ */ #include "mv_feature_key.h" -#include <system_info.h> bool mv_check_feature_key(const char *keys[], size_t num_keys, bool at_least_one) { - bool or_result = false; - for (size_t i = 0; i < num_keys; i++) { - bool supported = false; - - if (system_info_get_platform_bool(keys[i], &supported)) { - return false; - } - - or_result |= supported; - if (!supported && !at_least_one) - return false; - } - - return or_result; + return true; } |