diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:09:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:09:29 +0200 |
commit | 1cd28efa96dbc3d49a43d9b12c5b65d493baf949 (patch) | |
tree | 067c067ebdae3b8f7b00283413fe6a3271ab18ca /src/wreadln.c | |
parent | 85fb21cc2bb75cd207d770c6ee7567ddb8e09fd4 (diff) | |
download | mpd-1cd28efa96dbc3d49a43d9b12c5b65d493baf949.tar.gz mpd-1cd28efa96dbc3d49a43d9b12c5b65d493baf949.tar.xz mpd-1cd28efa96dbc3d49a43d9b12c5b65d493baf949.zip |
remove unused static functions
Also remove some commented code and unused function parameters.
Diffstat (limited to '')
-rw-r--r-- | src/wreadln.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/wreadln.c b/src/wreadln.c index fd653329b..f4a7ec3e2 100644 --- a/src/wreadln.c +++ b/src/wreadln.c @@ -104,7 +104,6 @@ static inline void drawline(gint cursor, gint start, gint width, gint x0, - gint x1, gint y, gboolean masked, gchar *line, @@ -182,14 +181,14 @@ _wreadln(WINDOW *w, g_strlcpy(line, hlist->data, wrln_max_line_size); } cursor_move_to_eol(&cursor, &start, width, x0, x1, line); - drawline(cursor, start, width, x0, x1, y, masked, line, w); + drawline(cursor, start, width, x0, y, masked, line, w); } else if( initial_value ) { /* copy the initial value to the line buffer */ g_strlcpy(line, initial_value, wrln_max_line_size); cursor_move_to_eol(&cursor, &start, width, x0, x1, line); - drawline(cursor, start, width, x0, x1, y, masked, line, w); + drawline(cursor, start, width, x0, y, masked, line, w); } while( key!=13 && key!='\n' ) @@ -363,7 +362,7 @@ _wreadln(WINDOW *w, } } - drawline(cursor, start, width, x0, x1, y, masked, line, w); + drawline(cursor, start, width, x0, y, masked, line, w); } /* update history */ @@ -479,7 +478,6 @@ static inline void drawline(gint cursor, gint start, gint width, gint x0, - gint x1, gint y, gboolean masked, wchar_t *line, @@ -568,14 +566,14 @@ _wreadln(WINDOW *w, mbstowcs(wline, hlist->data, wrln_max_line_size); } cursor_move_to_eol(&cursor, &start, width, x0, x1, wline); - drawline(cursor, start, width, x0, x1, y, masked, wline, w); + drawline(cursor, start, width, x0, y, masked, wline, w); } else if( initial_value ) { /* copy the initial value to the line buffer */ mbstowcs(wline, initial_value, wrln_max_line_size); cursor_move_to_eol(&cursor, &start, width, x0, x1, wline); - drawline(cursor, start, width, x0, x1, y, masked, wline, w); + drawline(cursor, start, width, x0, y, masked, wline, w); } wch=0; @@ -749,7 +747,7 @@ _wreadln(WINDOW *w, } } } - drawline(cursor, start, width, x0, x1, y, masked, wline, w); + drawline(cursor, start, width, x0, y, masked, wline, w); } i = wcstombs(NULL,wline,0)+1; mbline = g_malloc0(i); |