summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2008-05-21 17:43:12 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2008-05-21 17:43:12 (GMT)
commite2b412cbf5592ff1a8f085ea5e2cebdbb2a59590 (patch)
treee06892d4c933b4ceb3359661b7bb3078915c3850
parent85608c722a1f19c33553367a508e14f5f0172033 (diff)
downloadhdf5-e2b412cbf5592ff1a8f085ea5e2cebdbb2a59590.zip
hdf5-e2b412cbf5592ff1a8f085ea5e2cebdbb2a59590.tar.gz
hdf5-e2b412cbf5592ff1a8f085ea5e2cebdbb2a59590.tar.bz2
[svn-r15058] Purpose: Code cleanup
Description: Removed an unnecessary member function, H5File::dereference. Platforms tested: SunOS 5.10 (linew) Linux 2.6 (kagiso) FreeBSD (duty)
-rw-r--r--c++/src/H5File.cpp25
-rw-r--r--c++/src/H5File.h5
2 files changed, 0 insertions, 30 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp
index 6448467..9f8e45f 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -653,31 +653,6 @@ void H5File::reference(void* ref, const H5std_string& name) const
reference(ref, name.c_str());
}
-//--------------------------------------------------------------------------
-// Function: H5File::dereference
-// Purpose Dereference a ref into a DataSet object.
-// Parameters
-// ref - IN: Reference pointer
-// Exception H5::IdComponentException
-// Programmer Binh-Minh Ribler - Oct, 2006
-// Modification
-// May 2008 - BMR
-// Moved from IdComponent into H5File and H5Object
-//--------------------------------------------------------------------------
-void H5File::dereference(H5Object& obj, void* ref)
-{
- hid_t temp_id;
- try {
- temp_id = p_dereference(ref);
- }
- catch (ReferenceException ref_err) {
- throw (inMemFunc("dereference"), ref_err.getDetailMsg());
- }
-
- // No failure, set id to the object passed in
- obj.setId(temp_id);
-}
-
#ifndef H5_NO_DEPRECATED_SYMBOLS
//--------------------------------------------------------------------------
// Function: H5File::p_get_obj_type (protected)
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index 2badcc7..92b1e20 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -94,11 +94,6 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG {
void reference(void* ref, const char* name) const;
void reference(void* ref, const H5std_string& name) const;
- //change prototype: void dereference(IdComponent& obj, void* ref);
- // may need individual - remove when done
- // Open a referenced HDF5 object.
- void dereference(H5Object& obj, void* ref);
-
// Returns this class name
virtual H5std_string fromClass () const { return("H5File"); }