Skip to content

Commit

Permalink
Remove no longer used CPLInstallErrorHandlerAccumulator() / CPLUninst…
Browse files Browse the repository at this point in the history
…allErrorHandlerAccumulator()
  • Loading branch information
rouault committed Mar 4, 2025
1 parent 1d78dbc commit 4970a4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
24 changes: 0 additions & 24 deletions port/cpl_error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1535,30 +1535,6 @@ bool CPLIsDefaultErrorHandlerAndCatchDebug()
gbCatchDebug && pfnErrorHandler == CPLDefaultErrorHandler;
}

/************************************************************************/
/* CPLErrorAccumulatorFunc() */
/************************************************************************/

static void CPL_STDCALL CPLErrorAccumulatorFunc(CPLErr eErr, CPLErrorNum no,
const char *msg)
{
std::vector<CPLErrorHandlerAccumulatorStruct> *paoErrors =
static_cast<std::vector<CPLErrorHandlerAccumulatorStruct> *>(
CPLGetErrorHandlerUserData());
paoErrors->push_back(CPLErrorHandlerAccumulatorStruct(eErr, no, msg));
}

void CPLInstallErrorHandlerAccumulator(
std::vector<CPLErrorHandlerAccumulatorStruct> &aoErrors)
{
CPLPushErrorHandlerEx(CPLErrorAccumulatorFunc, &aoErrors);
}

void CPLUninstallErrorHandlerAccumulator()
{
CPLPopErrorHandler();
}

/************************************************************************/
/* CPLErrorStateBackuper::CPLErrorStateBackuper() */
/************************************************************************/
Expand Down
4 changes: 0 additions & 4 deletions port/cpl_error_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ class CPL_DLL CPLErrorHandlerAccumulatorStruct
}
};

void CPL_DLL CPLInstallErrorHandlerAccumulator(
std::vector<CPLErrorHandlerAccumulatorStruct> &aoErrors);
void CPL_DLL CPLUninstallErrorHandlerAccumulator();

/************************************************************************/
/* CPLErrorAccumulator */
/************************************************************************/
Expand Down

0 comments on commit 4970a4f

Please sign in to comment.