Skip to content

Commit 64a6801

Browse files
authored
refactor: remove extension group metadata and related functionality (#792)
1 parent 854444f commit 64a6801

File tree

7 files changed

+0
-730
lines changed

7 files changed

+0
-730
lines changed

core/include_internal/ten_runtime/extension_group/ten_env/metadata.h

Lines changed: 0 additions & 69 deletions
This file was deleted.

core/include_internal/ten_runtime/ten_env/metadata.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ typedef enum TEN_METADATA_LEVEL {
1616
TEN_METADATA_LEVEL_INVALID,
1717

1818
TEN_METADATA_LEVEL_APP,
19-
TEN_METADATA_LEVEL_EXTENSION_GROUP,
2019
TEN_METADATA_LEVEL_EXTENSION,
21-
TEN_METADATA_LEVEL_ADDON,
2220
} TEN_METADATA_LEVEL;
2321

2422
typedef void (*ten_env_peek_property_async_cb_t)(ten_env_t *ten_env,

core/include_internal/ten_utils/lib/placeholder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "ten_utils/ten_config.h"
1010

11-
#include "include_internal/ten_runtime/extension_group/ten_env/metadata.h"
1211
#include "ten_utils/lib/error.h"
1312
#include "ten_utils/lib/signature.h"
1413
#include "ten_utils/lib/string.h"

core/src/ten_runtime/extension_group/ten_env/metadata.c

Lines changed: 0 additions & 259 deletions
This file was deleted.

core/src/ten_runtime/ten_env/internal/metadata.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "include_internal/ten_runtime/extension/ten_env/metadata.h"
1515
#include "include_internal/ten_runtime/extension_context/extension_context.h"
1616
#include "include_internal/ten_runtime/extension_group/extension_group.h"
17-
#include "include_internal/ten_runtime/extension_group/ten_env/metadata.h"
1817
#include "include_internal/ten_runtime/metadata/metadata_info.h"
1918
#include "include_internal/ten_runtime/ten_env/metadata.h"
2019
#include "include_internal/ten_runtime/ten_env/metadata_cb.h"
@@ -46,12 +45,6 @@ static TEN_METADATA_LEVEL ten_get_metadata_level_from_name(
4645
metadata_level = TEN_METADATA_LEVEL_EXTENSION;
4746
*p_name +=
4847
strlen(TEN_STR_EXTENSION TEN_STR_PROPERTY_STORE_SCOPE_DELIMITER);
49-
} else if (ten_c_string_starts_with(
50-
name, TEN_STR_EXTENSION_GROUP
51-
TEN_STR_PROPERTY_STORE_SCOPE_DELIMITER)) {
52-
metadata_level = TEN_METADATA_LEVEL_EXTENSION_GROUP;
53-
*p_name += strlen(
54-
TEN_STR_EXTENSION_GROUP TEN_STR_PROPERTY_STORE_SCOPE_DELIMITER);
5548
} else if (ten_c_string_starts_with(
5649
name, TEN_STR_APP TEN_STR_PROPERTY_STORE_SCOPE_DELIMITER)) {
5750
metadata_level = TEN_METADATA_LEVEL_APP;
@@ -78,12 +71,6 @@ ten_determine_metadata_level(TEN_ENV_ATTACH_TO attach_to_type,
7871
ten_get_metadata_level_from_name(p_name, TEN_METADATA_LEVEL_EXTENSION);
7972
break;
8073

81-
case TEN_ENV_ATTACH_TO_EXTENSION_GROUP:
82-
level = ten_get_metadata_level_from_name(
83-
p_name, TEN_METADATA_LEVEL_EXTENSION_GROUP);
84-
TEN_ASSERT(level != TEN_METADATA_LEVEL_EXTENSION, "Should not happen.");
85-
break;
86-
8774
case TEN_ENV_ATTACH_TO_APP:
8875
level = ten_get_metadata_level_from_name(p_name, TEN_METADATA_LEVEL_APP);
8976
TEN_ASSERT(level == TEN_METADATA_LEVEL_APP, "Should not happen.");

0 commit comments

Comments
 (0)