Skip to content

Commit 4970a4f

Browse files
committed
Remove no longer used CPLInstallErrorHandlerAccumulator() / CPLUninstallErrorHandlerAccumulator()
1 parent 1d78dbc commit 4970a4f

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

port/cpl_error.cpp

-24
Original file line numberDiff line numberDiff line change
@@ -1535,30 +1535,6 @@ bool CPLIsDefaultErrorHandlerAndCatchDebug()
15351535
gbCatchDebug && pfnErrorHandler == CPLDefaultErrorHandler;
15361536
}
15371537

1538-
/************************************************************************/
1539-
/* CPLErrorAccumulatorFunc() */
1540-
/************************************************************************/
1541-
1542-
static void CPL_STDCALL CPLErrorAccumulatorFunc(CPLErr eErr, CPLErrorNum no,
1543-
const char *msg)
1544-
{
1545-
std::vector<CPLErrorHandlerAccumulatorStruct> *paoErrors =
1546-
static_cast<std::vector<CPLErrorHandlerAccumulatorStruct> *>(
1547-
CPLGetErrorHandlerUserData());
1548-
paoErrors->push_back(CPLErrorHandlerAccumulatorStruct(eErr, no, msg));
1549-
}
1550-
1551-
void CPLInstallErrorHandlerAccumulator(
1552-
std::vector<CPLErrorHandlerAccumulatorStruct> &aoErrors)
1553-
{
1554-
CPLPushErrorHandlerEx(CPLErrorAccumulatorFunc, &aoErrors);
1555-
}
1556-
1557-
void CPLUninstallErrorHandlerAccumulator()
1558-
{
1559-
CPLPopErrorHandler();
1560-
}
1561-
15621538
/************************************************************************/
15631539
/* CPLErrorStateBackuper::CPLErrorStateBackuper() */
15641540
/************************************************************************/

port/cpl_error_internal.h

-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ class CPL_DLL CPLErrorHandlerAccumulatorStruct
4545
}
4646
};
4747

48-
void CPL_DLL CPLInstallErrorHandlerAccumulator(
49-
std::vector<CPLErrorHandlerAccumulatorStruct> &aoErrors);
50-
void CPL_DLL CPLUninstallErrorHandlerAccumulator();
51-
5248
/************************************************************************/
5349
/* CPLErrorAccumulator */
5450
/************************************************************************/

0 commit comments

Comments
 (0)