mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +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
4 changed files with 1 additions and 30 deletions
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue