From e27ba123641be73ecb02eee67b23297122f6753a Mon Sep 17 00:00:00 2001 From: javierbrk Date: Thu, 15 Aug 2024 13:17:23 -0300 Subject: [PATCH] ref_state: clean up unused functions --- .../files/etc/uci-defaults/shared-state_babel_links_info | 6 +----- ...ate_bat_links_info_cron => shared-state_bat_links_info} | 5 ----- ...{shared-state_node_info_cron => shared-state_node_info} | 7 +------ .../files/etc/uci-defaults/shared-state_wifi_links_info | 6 ------ 4 files changed, 2 insertions(+), 22 deletions(-) rename packages/shared-state-bat_links_info/files/etc/uci-defaults/{shared-state_bat_links_info_cron => shared-state_bat_links_info} (91%) rename packages/shared-state-node_info/files/etc/uci-defaults/{shared-state_node_info_cron => shared-state_node_info} (89%) diff --git a/packages/shared-state-babel_links_info/files/etc/uci-defaults/shared-state_babel_links_info b/packages/shared-state-babel_links_info/files/etc/uci-defaults/shared-state_babel_links_info index f96c224ed..366188f26 100755 --- a/packages/shared-state-babel_links_info/files/etc/uci-defaults/shared-state_babel_links_info +++ b/packages/shared-state-babel_links_info/files/etc/uci-defaults/shared-state_babel_links_info @@ -1,9 +1,5 @@ #!/bin/sh -unique_append() -{ - grep -qF "$1" "$2" || echo "$1" >> "$2" -} - +## information generator datatype uci set shared-state.babel_links_info=dataType uci set shared-state.babel_links_info.name='babel_links_info' uci set shared-state.babel_links_info.scope='community' diff --git a/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron b/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info similarity index 91% rename from packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron rename to packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info index 5551c8e76..655e19036 100755 --- a/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron +++ b/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info @@ -1,9 +1,4 @@ #!/bin/sh - -unique_append() -{ - grep -qF "$1" "$2" || echo "$1" >> "$2" -} ## information generator datatype uci set shared-state.bat_links_info=dataType uci set shared-state.bat_links_info.name='bat_links_info' diff --git a/packages/shared-state-node_info/files/etc/uci-defaults/shared-state_node_info_cron b/packages/shared-state-node_info/files/etc/uci-defaults/shared-state_node_info similarity index 89% rename from packages/shared-state-node_info/files/etc/uci-defaults/shared-state_node_info_cron rename to packages/shared-state-node_info/files/etc/uci-defaults/shared-state_node_info index f745ffa98..e47c92d5c 100755 --- a/packages/shared-state-node_info/files/etc/uci-defaults/shared-state_node_info_cron +++ b/packages/shared-state-node_info/files/etc/uci-defaults/shared-state_node_info @@ -1,10 +1,5 @@ #!/bin/sh - -unique_append() -{ - grep -qF "$1" "$2" || echo "$1" >> "$2" -} - +## information generator datatype uci set shared-state.node_info=dataType uci set shared-state.node_info.name='node_info' uci set shared-state.node_info.scope='community' diff --git a/packages/shared-state-wifi_links_info/files/etc/uci-defaults/shared-state_wifi_links_info b/packages/shared-state-wifi_links_info/files/etc/uci-defaults/shared-state_wifi_links_info index 88f6ccce4..88304b091 100755 --- a/packages/shared-state-wifi_links_info/files/etc/uci-defaults/shared-state_wifi_links_info +++ b/packages/shared-state-wifi_links_info/files/etc/uci-defaults/shared-state_wifi_links_info @@ -1,10 +1,4 @@ #!/bin/sh - -unique_append() -{ - grep -qF "$1" "$2" || echo "$1" >> "$2" -} - uci set shared-state.wifi_links_info=dataType uci set shared-state.wifi_links_info.name='wifi_links_info' uci set shared-state.wifi_links_info.scope='community'