Remove the unused function ClearDiagnosticStrBufs().
This commit is contained in:
@@ -506,23 +506,12 @@ void InitDiagnosticStrBufs (void)
|
|||||||
|
|
||||||
void DoneDiagnosticStrBufs (void)
|
void DoneDiagnosticStrBufs (void)
|
||||||
/* Done with tracked string buffers used for diagnostics */
|
/* Done with tracked string buffers used for diagnostics */
|
||||||
{
|
|
||||||
ClearDiagnosticStrBufs ();
|
|
||||||
DoneCollection (&DiagnosticStrBufs);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void ClearDiagnosticStrBufs (void)
|
|
||||||
/* Free all tracked string buffers */
|
|
||||||
{
|
{
|
||||||
unsigned I;
|
unsigned I;
|
||||||
|
|
||||||
for (I = 0; I < CollCount (&DiagnosticStrBufs); ++I) {
|
for (I = 0; I < CollCount (&DiagnosticStrBufs); ++I) {
|
||||||
SB_Done (CollAtUnchecked (&DiagnosticStrBufs, I));
|
SB_Done (CollAtUnchecked (&DiagnosticStrBufs, I));
|
||||||
}
|
}
|
||||||
|
DoneCollection (&DiagnosticStrBufs);
|
||||||
CollDeleteAll (&DiagnosticStrBufs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -159,9 +159,6 @@ void InitDiagnosticStrBufs (void);
|
|||||||
void DoneDiagnosticStrBufs (void);
|
void DoneDiagnosticStrBufs (void);
|
||||||
/* Done with tracked string buffers used for diagnostics */
|
/* Done with tracked string buffers used for diagnostics */
|
||||||
|
|
||||||
void ClearDiagnosticStrBufs (void);
|
|
||||||
/* Free all tracked string buffers */
|
|
||||||
|
|
||||||
struct StrBuf* NewDiagnosticStrBuf (void);
|
struct StrBuf* NewDiagnosticStrBuf (void);
|
||||||
/* Get a new tracked string buffer */
|
/* Get a new tracked string buffer */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user