removed check_and_treat_gpu_exception function

This commit is contained in:
Alexey Spizhevoy
2011-02-17 11:18:32 +00:00
parent 993773b74a
commit 97eaa95a1e
2 changed files with 2 additions and 26 deletions

View File

@@ -5,27 +5,4 @@
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/highgui/highgui.hpp"
static inline bool check_and_treat_gpu_exception(const cv::Exception& e, cvtest::TS* ts)
{
switch (e.code)
{
case CV_GpuNotSupported:
ts->printf(cvtest::TS::LOG, "\nGpu not supported by the library");
break;
case CV_GpuApiCallError:
ts->printf(cvtest::TS::LOG, "\nGPU Error: %s", e.what());
break;
case CV_GpuNppCallError:
ts->printf(cvtest::TS::LOG, "\nNPP Error: %s", e.what());
break;
default:
return false;
}
ts->set_failed_test_info(cvtest::TS::FAIL_GENERIC);
return true;
}
#endif