From 10d3645a9319bca828aacc89638a3af28a110d64 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 3 Sep 2022 11:39:15 +0100 Subject: [PATCH] Remove an unused helper function. I was wondering what this was doing here at all when strbuf_chomp is a better choice. The answer turned out to be 'nothing' - it wasn't even used any more. --- import.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/import.c b/import.c index 79a4359d..f5d6045d 100644 --- a/import.c +++ b/import.c @@ -174,17 +174,6 @@ bool export_ssh2(const Filename *filename, int type, return false; } -/* - * Strip trailing CRs and LFs at the end of a line of text. - */ -void strip_crlf(char *str) -{ - char *p = str + strlen(str); - - while (p > str && (p[-1] == '\r' || p[-1] == '\n')) - *--p = '\0'; -} - /* ---------------------------------------------------------------------- * Helper routines. (The base64 ones are defined in sshpubk.c.) */