Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
Makefile | 2 --
src/bar.c | 32 --------------------------------
src/bar.h | 7 -------
3 files changed, 0 insertions(+), 41 deletions(-)
delete mode 100644 src/bar.c
delete mode 100644 src/bar.h
diff --git a/Makefile b/Makefile
index f187e50..e6ba342 100644
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,6 @@ iptraf-h += src/pktsize.h
iptraf-h += src/landesc.h
iptraf-h += src/dirs.h
iptraf-h += src/getpath.h
-iptraf-h += src/bar.h
iptraf-h += src/options.h
iptraf-h += src/promisc.h
iptraf-h += src/parseproto.h
@@ -125,7 +124,6 @@ iptraf-o += src/tui/winops.o
iptraf-o += src/error.o
iptraf-o += src/log.o
iptraf-o += src/getpath.o
-iptraf-o += src/bar.o
iptraf-o += src/parseproto.o
iptraf-o += src/fltselect.o
iptraf-o += src/ipfilter.o
diff --git a/src/bar.c b/src/bar.c
deleted file mode 100644
index bc88c4c..0000000
--- a/src/bar.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* For terms of usage/redistribution/modification see the LICENSE file */
-/* For authors and contributors see the AUTHORS file */
-
-// TODO: full rewrite
-
-/*
- * Set the highlight bar to point to the specified entry.
- * This routine also sets the cleared flag (indicates whether the
- * flow rate has been displayed). The flow rate computation timer
- * and accumulator are also reset.
- */
-
-#include "iptraf-ng-compat.h"
-
-#include "tui/winops.h"
-
-#include "attrs.h"
-
-void set_barptr(void **barptr, void *entry, time_t * starttime, void *spanbr,
- size_t size, WINDOW * win, int *cleared, int x)
-{
- *barptr = entry;
- *starttime = time(NULL);
- memset(spanbr, 0, size);
-
- if (!(*cleared)) {
- wattrset(win, IPSTATATTR);
- mvwprintw(win, 0, x, "Computing");
- tx_wcoloreol(win);
- *cleared = 1;
- }
-}
diff --git a/src/bar.h b/src/bar.h
deleted file mode 100644
index b1be8d8..0000000
--- a/src/bar.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef IPTRAF_NG_BAR_H
-#define IPTRAF_NG_BAR_H
-
-void set_barptr(void **barptr, void *entry, time_t * starttime, void *spanbr,
- size_t size, WINDOW * win, int *cleared, int x);
-
-#endif /* IPTRAF_NG_BAR_H */
--
1.7.8.4