aboutsummaryrefslogtreecommitdiff
path: root/toys/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/patch.c')
-rw-r--r--toys/patch.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/toys/patch.c b/toys/patch.c
index 34d33c79..612b572b 100644
--- a/toys/patch.c
+++ b/toys/patch.c
@@ -70,20 +70,6 @@ static void do_line(void *data)
free(dlist->data);
}
-
-static void dlist_add(struct double_list **list, char *data)
-{
- struct double_list *line = xmalloc(sizeof(struct double_list));
-
- line->data = data;
- if (*list) {
- line->next = *list;
- line->prev = (*list)->prev;
- (*list)->prev->next = line;
- (*list)->prev = line;
- } else *list = line->next = line->prev = line;
-}
-
static void finish_oldfile(void)
{
if (TT.tempname) replace_tempfile(TT.filein, TT.fileout, &TT.tempname);