From dc66cf862aede169df736230359e2804068b8dc2 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Thu, 14 Nov 2013 20:24:34 +0100 Subject: [PATCH] statistics.sh: remove unused function Signed-off-by: Tim Niemeyer --- bsp/default/root_file_system/etc/statistics.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/bsp/default/root_file_system/etc/statistics.sh b/bsp/default/root_file_system/etc/statistics.sh index 119518a5..5122e7a7 100755 --- a/bsp/default/root_file_system/etc/statistics.sh +++ b/bsp/default/root_file_system/etc/statistics.sh @@ -3,18 +3,6 @@ # config STATSDIR="/tmp/statistics" -# functions -paste_variables() { - local VAR1="$1" - local VAR2="$2" - local TMP1=$(mktemp) || return 1 - local TMP2=$(mktemp) || return 1 - echo "$VAR1" > "$TMP1" - echo "$VAR2" > "$TMP2" - paste -d" " "$TMP1" "$TMP2" - rm "$TMP1" "$TMP2" -} - get_trafficdata() { cat /proc/net/dev | tail -n +3 | tr ":" " " | sed -e 's/^[ ]\+//g' | tr -s " " | cut -d" " -f 1,2,3,10,11 || return 1 } @@ -60,6 +48,3 @@ chmod -R 700 "$STATSDIR" # update values update_traffic - - -