From 81e1312416c4e290fefbc4079be8f67850109eb4 Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Tue, 20 May 2025 13:50:33 +0200 Subject: [PATCH] Remove the unused function ClearDiagnosticStrBufs(). --- src/cc65/error.c | 13 +------------ src/cc65/error.h | 3 --- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/cc65/error.c b/src/cc65/error.c index d6e7d7cbd..6575a1e54 100644 --- a/src/cc65/error.c +++ b/src/cc65/error.c @@ -506,23 +506,12 @@ void InitDiagnosticStrBufs (void) void DoneDiagnosticStrBufs (void) /* Done with tracked string buffers used for diagnostics */ -{ - ClearDiagnosticStrBufs (); - DoneCollection (&DiagnosticStrBufs); -} - - - -void ClearDiagnosticStrBufs (void) -/* Free all tracked string buffers */ { unsigned I; - for (I = 0; I < CollCount (&DiagnosticStrBufs); ++I) { SB_Done (CollAtUnchecked (&DiagnosticStrBufs, I)); } - - CollDeleteAll (&DiagnosticStrBufs); + DoneCollection (&DiagnosticStrBufs); } diff --git a/src/cc65/error.h b/src/cc65/error.h index 5af862f9f..3cb2f75a9 100644 --- a/src/cc65/error.h +++ b/src/cc65/error.h @@ -159,9 +159,6 @@ void InitDiagnosticStrBufs (void); void DoneDiagnosticStrBufs (void); /* Done with tracked string buffers used for diagnostics */ -void ClearDiagnosticStrBufs (void); -/* Free all tracked string buffers */ - struct StrBuf* NewDiagnosticStrBuf (void); /* Get a new tracked string buffer */