From 685821526f607d095a4bd609d71ca2b7b9ce161f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 30 May 2002 07:42:55 -0500 Subject: [svn-r5487] Purpose: Bug fix Description: H5Ewalk_cb was being called from a C++ API, when it really is an internal routine to the H5E interface. Solution: Removed C++ API wrapper for it. Platforms tested: FreeBSD 4.5 (sleipnir) --- c++/src/H5Exception.cpp | 10 ---------- c++/src/H5Exception.h | 5 ----- 2 files changed, 15 deletions(-) diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp index 045be68..dc4c85f 100644 --- a/c++/src/H5Exception.cpp +++ b/c++/src/H5Exception.cpp @@ -115,16 +115,6 @@ void Exception::walkErrorStack( H5E_direction_t direction, H5E_walk_t func, void throw Exception( "Exception::walkErrorStack", "H5Ewalk failed" ); } -// Default error stack traversal callback function that prints error -// messages to the specified output stream. -void Exception::walkDefErrorStack( int n, H5E_error_t& err_desc, void* client_data ) -{ - // calls the C API routine H5Ewalk_cb to walk the error stack - herr_t ret_value = H5Ewalk_cb( n, &err_desc, client_data ); - if( ret_value < 0 ) - throw Exception( "Exception::walkDefErrorStack", "H5Ewalk_cb failed" ); -} - // Returns the detailed message set at the time the exception is thrown string Exception::getDetailMsg() const { diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h index 7b69e79..a5e0f91 100644 --- a/c++/src/H5Exception.h +++ b/c++/src/H5Exception.h @@ -53,11 +53,6 @@ class __DLLCPP__ Exception { static void walkErrorStack( H5E_direction_t direction, H5E_walk_t func, void* client_data); - // Default error stack traversal callback function that prints - // error messages to the specified output stream. - static void walkDefErrorStack( int n, H5E_error_t& err_desc, - void* client_data); - // Prints the error stack in a default manner. virtual void printError( FILE* stream = NULL ) const; -- cgit v0.12