Drop remaning C CV_FUNCTION_NAME as it's not used any more.

This commit is contained in:
Alexander Smorkalov 2024-09-12 08:38:19 +03:00
parent b574db2cff
commit f8a75bccab
3 changed files with 0 additions and 55 deletions

View File

@ -1830,27 +1830,6 @@ cv::error((status),(func),(context),__FILE__,__LINE__)
Func; \ Func; \
} }
/** CV_FUNCNAME macro defines icvFuncName constant which is used by CV_ERROR macro */
#ifdef CV_NO_FUNC_NAMES
#define CV_FUNCNAME( Name )
#define cvFuncName ""
#else
#define CV_FUNCNAME( Name ) \
static char cvFuncName[] = Name
#endif
/**
CV_ERROR macro unconditionally raises error with passed code and message.
After raising error, control will be transferred to the exit label.
*/
#define CV_ERROR( Code, Msg ) \
{ \
cv::error( (Code), cvFuncName, Msg, __FILE__, __LINE__ ); \
__CV_EXIT__; \
}
/** /**
CV_CHECK macro checks error status after CV (or IPL) CV_CHECK macro checks error status after CV (or IPL)
function call. If error detected, control will be transferred to the exit function call. If error detected, control will be transferred to the exit

View File

@ -851,8 +851,6 @@ double cvGetOpenGlProp_W32(const char* name)
double result = -1; double result = -1;
#ifdef HAVE_OPENGL #ifdef HAVE_OPENGL
CV_FUNCNAME("cvGetOpenGlProp_W32");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (!name) if (!name)
@ -894,8 +892,6 @@ namespace
{ {
void createGlContext(HWND hWnd, HDC& hGLDC, HGLRC& hGLRC, bool& useGl) void createGlContext(HWND hWnd, HDC& hGLDC, HGLRC& hGLRC, bool& useGl)
{ {
CV_FUNCNAME("createGlContext");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
useGl = false; useGl = false;
@ -947,8 +943,6 @@ namespace
void releaseGlContext(CvWindow& window) void releaseGlContext(CvWindow& window)
{ {
//CV_FUNCNAME("releaseGlContext");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (window.hGLRC) if (window.hGLRC)
@ -968,8 +962,6 @@ namespace
void drawGl(CvWindow& window) void drawGl(CvWindow& window)
{ {
CV_FUNCNAME("drawGl");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (!wglMakeCurrent(window.dc, window.hGLRC)) if (!wglMakeCurrent(window.dc, window.hGLRC))
@ -986,8 +978,6 @@ namespace
void resizeGl(CvWindow& window) void resizeGl(CvWindow& window)
{ {
CV_FUNCNAME("resizeGl");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (!wglMakeCurrent(window.dc, window.hGLRC)) if (!wglMakeCurrent(window.dc, window.hGLRC))
@ -1119,8 +1109,6 @@ static std::shared_ptr<CvWindow> namedWindow_(const std::string& name, int flags
void setOpenGLContextImpl(const char* name) void setOpenGLContextImpl(const char* name)
{ {
CV_FUNCNAME("setOpenGLContextImpl");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (!name) if (!name)
@ -1139,8 +1127,6 @@ void setOpenGLContextImpl(const char* name)
void updateWindowImpl(const char* name) void updateWindowImpl(const char* name)
{ {
CV_FUNCNAME("updateWindowImpl");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (!name) if (!name)
@ -1155,8 +1141,6 @@ void updateWindowImpl(const char* name)
void setOpenGLDrawCallbackImpl(const char* name, CvOpenGlDrawCallback callback, void* userdata) void setOpenGLDrawCallbackImpl(const char* name, CvOpenGlDrawCallback callback, void* userdata)
{ {
CV_FUNCNAME("cvCreateOpenGLCallback");
AutoLock lock(getWindowMutex()); AutoLock lock(getWindowMutex());
if (!name) if (!name)

View File

@ -48,8 +48,6 @@ void cv::winrt_initContainer(::Windows::UI::Xaml::Controls::Panel^ _container)
void showImageImpl(const char* name, InputArray arr) void showImageImpl(const char* name, InputArray arr)
{ {
CV_FUNCNAME("showImageImpl");
__BEGIN__; __BEGIN__;
if (!name) if (!name)
@ -72,8 +70,6 @@ void showImageImpl(const char* name, InputArray arr)
int namedWindowImpl(const char* name, int flags) int namedWindowImpl(const char* name, int flags)
{ {
CV_FUNCNAME("namedWindowImpl");
if (!name) if (!name)
CV_Error(cv::Error::StsNullPtr, "NULL name"); CV_Error(cv::Error::StsNullPtr, "NULL name");
@ -84,8 +80,6 @@ int namedWindowImpl(const char* name, int flags)
void destroyWindowImpl(const char* name) void destroyWindowImpl(const char* name)
{ {
CV_FUNCNAME("destroyWindowImpl");
if (!name) if (!name)
CV_Error(cv::Error::StsNullPtr, "NULL name string"); CV_Error(cv::Error::StsNullPtr, "NULL name string");
@ -100,8 +94,6 @@ void destroyAllWindowsImpl()
int createTrackbar2Impl(const char* trackbar_name, const char* window_name, int createTrackbar2Impl(const char* trackbar_name, const char* window_name,
int* val, int count, CvTrackbarCallback2 on_notify, void* userdata) int* val, int count, CvTrackbarCallback2 on_notify, void* userdata)
{ {
CV_FUNCNAME("createTrackbar2Impl");
int pos = 0; int pos = 0;
if (!window_name || !trackbar_name) if (!window_name || !trackbar_name)
@ -124,8 +116,6 @@ int createTrackbar2Impl(const char* trackbar_name, const char* window_name,
void setTrackbarPosImpl(const char* trackbar_name, const char* window_name, int pos) void setTrackbarPosImpl(const char* trackbar_name, const char* window_name, int pos)
{ {
CV_FUNCNAME("setTrackbarPosImpl");
CvTrackbar* trackbar = 0; CvTrackbar* trackbar = 0;
if (trackbar_name == 0 || window_name == 0) if (trackbar_name == 0 || window_name == 0)
@ -141,8 +131,6 @@ void setTrackbarPosImpl(const char* trackbar_name, const char* window_name, int
void setTrackbarMaxImpl(const char* trackbar_name, const char* window_name, int maxval) void setTrackbarMaxImpl(const char* trackbar_name, const char* window_name, int maxval)
{ {
CV_FUNCNAME("setTrackbarMaxImpl");
if (maxval >= 0) if (maxval >= 0)
{ {
if (trackbar_name == 0 || window_name == 0) if (trackbar_name == 0 || window_name == 0)
@ -157,8 +145,6 @@ void setTrackbarMaxImpl(const char* trackbar_name, const char* window_name, int
void setTrackbarMinImpl(const char* trackbar_name, const char* window_name, int minval) void setTrackbarMinImpl(const char* trackbar_name, const char* window_name, int minval)
{ {
CV_FUNCNAME("setTrackbarMinImpl");
if (minval >= 0) if (minval >= 0)
{ {
if (trackbar_name == 0 || window_name == 0) if (trackbar_name == 0 || window_name == 0)
@ -175,8 +161,6 @@ int getTrackbarPosImpl(const char* trackbar_name, const char* window_name)
{ {
int pos = -1; int pos = -1;
CV_FUNCNAME("getTrackbarPosImpl");
if (trackbar_name == 0 || window_name == 0) if (trackbar_name == 0 || window_name == 0)
CV_Error(cv::Error::StsNullPtr, "NULL trackbar or window name"); CV_Error(cv::Error::StsNullPtr, "NULL trackbar or window name");
@ -212,8 +196,6 @@ void setMouseCallbackImpl(const char* window_name, CvMouseCallback on_mouse, voi
{ {
CV_WINRT_NO_GUI_ERROR("setMouseCallbackImpl"); CV_WINRT_NO_GUI_ERROR("setMouseCallbackImpl");
CV_FUNCNAME("setMouseCallbackImpl");
if (!window_name) if (!window_name)
CV_Error(cv::Error::StsNullPtr, "NULL window name"); CV_Error(cv::Error::StsNullPtr, "NULL window name");