Commit 8a167de5 authored by Gregoire Mercier's avatar Gregoire Mercier
Browse files

REFAC: removing old MuTex test

parent 56365e0b
......@@ -194,7 +194,6 @@ private:
Those method will disappear.
Use Default because don't need to know the sensor type*/
typename DefaultImageMetadataInterface::Pointer m_ImageMetadataInterface;
typename itk::MutexLock::Pointer m_MyMutex;
};
......
......@@ -31,7 +31,6 @@ template <class TPixel, unsigned int VImageDimension>
Image<TPixel,VImageDimension>::Image()
{
m_ImageMetadataInterface = DefaultImageMetadataInterface::New();
m_MyMutex = itk::MutexLock::New();
}
template <class TPixel, unsigned int VImageDimension>
......@@ -154,12 +153,10 @@ void
Image<TPixel, VImageDimension>
::CopyInformation(const itk::DataObject * data)
{
m_MyMutex->Lock();
Superclass::CopyInformation(data);
// this->itk::Object::SetMetaDataDictionary(data->GetMetaDataDictionary());
itk::MetaDataDictionary dict = data->GetMetaDataDictionary();
this->itk::Object::SetMetaDataDictionary(dict);
m_MyMutex->Unlock();
}
template <class TPixel, unsigned int VImageDimension>
......
......@@ -185,7 +185,6 @@ private:
Those method will disappear.
Use Default because don't need to know the sensor type*/
typename DefaultImageMetadataInterface::Pointer m_ImageMetadataInterface;
typename itk::MutexLock::Pointer m_MyMutex;
};
......
......@@ -32,7 +32,6 @@ template <class TPixel, unsigned int VImageDimension>
VectorImage<TPixel,VImageDimension>::VectorImage()
{
m_ImageMetadataInterface = DefaultImageMetadataInterface::New();
m_MyMutex = itk::MutexLock::New();
}
template <class TPixel, unsigned int VImageDimension>
......@@ -155,10 +154,8 @@ void
VectorImage<TPixel, VImageDimension>
::CopyInformation(const itk::DataObject * data)
{
m_MyMutex->Lock();
Superclass::CopyInformation(data);
this->itk::Object::SetMetaDataDictionary(data->GetMetaDataDictionary());
m_MyMutex->Unlock();
}
template <class TPixel, unsigned int VImageDimension>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment