aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-08 23:30:01 +0200
committerDaniel Lezcano <daniel.lezcano@free.fr>2011-06-08 23:30:01 +0200
commit05916f88daf6dae6185f4ec5792b7ceb552cf8fc (patch)
treeaf0dd240a0db249bae8db6c6c00a63ea2bfdcf53
parent2adc48d874185d79e61d6a97dd850a506b4f914f (diff)
remove unused 'hrow' and 'selected' parameters
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--clocks.c2
-rw-r--r--powerdebug.c17
-rw-r--r--powerdebug.h2
3 files changed, 5 insertions, 16 deletions
diff --git a/clocks.c b/clocks.c
index de5476a..603ebe4 100644
--- a/clocks.c
+++ b/clocks.c
@@ -392,7 +392,7 @@ int clock_init(void)
* found in the files. Then print the result to the text based interface
* Return 0 on success, < 0 otherwise
*/
-int read_and_print_clock_info(int hrow, int selected)
+int read_and_print_clock_info(void)
{
if (read_clock_info())
return -1;
diff --git a/powerdebug.c b/powerdebug.c
index 5cf9da7..1873b1b 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -21,8 +21,6 @@
#include "clocks.h"
#include "powerdebug.h"
-static int highlighted_row;
-
void usage(void)
{
printf("Usage: powerdebug [OPTIONS]\n");
@@ -274,23 +272,14 @@ int mainloop(struct powerdebug_options *options,
if (options->selectedwindow == CLOCK) {
- int hrow;
-
if (!cont) {
if (!findparent_ncurses) {
- int command = 0;
- if (enter_hit) {
+ if (enter_hit)
clock_toggle_expanded();
- command = CLOCK_SELECTED;
- }
- if (refreshwin)
- command = REFRESH_WINDOW;
- hrow = read_and_print_clock_info(
- highlighted_row,
- command);
- highlighted_row = hrow;
+
+ read_and_print_clock_info();
enter_hit = false;
} else
find_parents_for_clock(clkname_str,
diff --git a/powerdebug.h b/powerdebug.h
index 760bcfb..502dcaa 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -30,7 +30,7 @@ enum {CLOCK_SELECTED = 1, REFRESH_WINDOW};
extern int read_and_dump_clock_info(char *clk);
extern void find_parents_for_clock(char *clkname, int complete);
-extern int read_and_print_clock_info(int hrow, int selected);
+extern int read_and_print_clock_info(void);
extern int print_clock_info(int hrow, int selected);
extern void print_string_val(char *name, char *val);
extern void print_clock_header(void);