mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by
lint.
This commit is contained in:
parent
b9a179089b
commit
044ebf1952
14
grid.c
14
grid.c
@ -199,20 +199,6 @@ grid_scroll_line(struct grid *gd)
|
||||
gd->hsize++;
|
||||
}
|
||||
|
||||
/* Reduce line to fit to cell. */
|
||||
void
|
||||
grid_reduce_line(struct grid *gd, u_int py, u_int sx)
|
||||
{
|
||||
if (sx < gd->size[py]) {
|
||||
gd->data[py] = xrealloc(gd->data[py], sx, sizeof **gd->data);
|
||||
gd->size[py] = sx;
|
||||
}
|
||||
if (sx < gd->usize[py]) {
|
||||
gd->udata[py] = xrealloc(gd->udata[py], sx, sizeof **gd->udata);
|
||||
gd->usize[py] = sx;
|
||||
}
|
||||
}
|
||||
|
||||
/* Expand line to fit to cell. */
|
||||
void
|
||||
grid_expand_line(struct grid *gd, u_int py, u_int sx)
|
||||
|
13
log.c
13
log.c
@ -171,19 +171,6 @@ log_debug2(const char *msg, ...)
|
||||
}
|
||||
}
|
||||
|
||||
/* Log a debug message at level 3. */
|
||||
void printflike1
|
||||
log_debug3(const char *msg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
if (log_level > 2) {
|
||||
va_start(ap, msg);
|
||||
log_vwrite(LOG_DEBUG, msg, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
}
|
||||
|
||||
/* Log a critical error, with error string if necessary, and die. */
|
||||
__dead void
|
||||
log_vfatal(const char *msg, va_list ap)
|
||||
|
2
status.c
2
status.c
@ -350,7 +350,7 @@ status_replace(struct session *s, const char *fmt, time_t t)
|
||||
wl->window->active));
|
||||
ptr = tmp;
|
||||
}
|
||||
/* FALLTHOUGH */
|
||||
/* FALLTHROUGH */
|
||||
case 'S':
|
||||
if (ptr == NULL)
|
||||
ptr = s->name;
|
||||
|
2
tmux.h
2
tmux.h
@ -1349,7 +1349,6 @@ extern const struct grid_cell grid_default_cell;
|
||||
struct grid *grid_create(u_int, u_int, u_int);
|
||||
void grid_destroy(struct grid *);
|
||||
int grid_compare(struct grid *, struct grid *);
|
||||
void grid_reduce_line(struct grid *, u_int, u_int);
|
||||
void grid_expand_line(struct grid *, u_int, u_int);
|
||||
void grid_expand_line_utf8(struct grid *, u_int, u_int);
|
||||
void grid_scroll_line(struct grid *);
|
||||
@ -1603,7 +1602,6 @@ void printflike1 log_warnx(const char *, ...);
|
||||
void printflike1 log_info(const char *, ...);
|
||||
void printflike1 log_debug(const char *, ...);
|
||||
void printflike1 log_debug2(const char *, ...);
|
||||
void printflike1 log_debug3(const char *, ...);
|
||||
__dead void log_fatal(const char *, ...);
|
||||
__dead void log_fatalx(const char *, ...);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user