summaryrefslogtreecommitdiff
path: root/lib/affinitymap.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-18 23:39:32 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-19 03:47:02 +0200
commit26bd685a87cd95b0a864580c5d8696eee203d929 (patch)
treecaab4c52fb17adf9a76570d2c5a814948d0d1c15 /lib/affinitymap.c
parentfdd834b8cc69b1b8c9bdfcfa1f033f35affb4c09 (diff)
lib: make affinity-map value unique in the yang model
It allows us to remove the code that does the same thing manually. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/affinitymap.c')
-rw-r--r--lib/affinitymap.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/affinitymap.c b/lib/affinitymap.c
index b748e74884..00f23c1ca3 100644
--- a/lib/affinitymap.c
+++ b/lib/affinitymap.c
@@ -106,21 +106,6 @@ struct affinity_map *affinity_map_get(const char *name)
return NULL;
}
-
-char *affinity_map_name_get(int pos)
-{
- struct listnode *node;
- struct affinity_map *map;
-
- if (!affinity_map_master.maps)
- return NULL;
-
- for (ALL_LIST_ELEMENTS_RO(affinity_map_master.maps, node, map))
- if (map->bit_position == pos)
- return map->name;
- return NULL;
-}
-
bool affinity_map_check_update_hook(const char *affmap_name, uint16_t new_pos)
{
if (affinity_map_master.check_update_hook)