Skip to content

Commit 53deec7

Browse files
committed
Remove unused widget callbacks
Signed-off-by: Alexey Gladkov <legion@kernel.org>
1 parent be3d3fc commit 53deec7

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

src/widget.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ void widget_noutrefresh(struct widget *w)
203203
if (!w->win)
204204
return;
205205

206-
if (w->noutrefresh) {
207-
w->noutrefresh(w);
208-
return;
209-
}
210-
211206
wnoutrefresh(w->win);
212207
}
213208

@@ -279,13 +274,6 @@ static void widget_create_window(struct widget *w)
279274
warnx("unable to create %s window (y=%d, x=%d, height=%d, width=%d)",
280275
widget_type(w), w->ly, w->lx, w->h, w->w);
281276
}
282-
} else if (w->create_win) {
283-
w->create_win(w);
284-
285-
if (!w->win) {
286-
warnx("unable to create %s custom window (y=%d, x=%d, height=%d, width=%d)",
287-
widget_type(w), w->ly, w->lx, w->h, w->w);
288-
}
289277
} else if (!w->parent->win) {
290278
warnx("unable to create %s subwindow without parent window (y=%d, x=%d, height=%d, width=%d)",
291279
widget_type(w), w->ly, w->lx, w->h, w->w);

src/widget.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ struct widget {
201201
void (*measure)(struct widget *); /* Compute intrinsic minimum size */
202202
void (*layout)(struct widget *); /* Assign positions/sizes to children */
203203
void (*render)(struct widget *); /* Draw contents into win */
204-
bool (*create_win)(struct widget *); /* Custom function to create window */
205-
void (*noutrefresh)(struct widget *); /* Custom function to refresh curses window */
206204
void (*free_data)(struct widget *); /* Free widget-specific data */
207205
int (*input)(const struct widget *, wchar_t); /* Handle keyboard input */
208206

0 commit comments

Comments
 (0)