Skip to content
Snippets Groups Projects
Commit 725b48a5 authored by Christoph Kampmeyer's avatar Christoph Kampmeyer
Browse files

MetaDataPropagatingRegisterDecorator: Clean up

Removed obsolete localValidity.
parent 146766aa
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,6 @@ namespace ChimeraTK {
/** value of validity flag from last read operation */
DataValidity lastValidity{DataValidity::ok};
/** value of validity flag from user */
DataValidity localValidity{DataValidity::ok};
};
DECLARE_TEMPLATE_FOR_CHIMERATK_USER_TYPES(MetaDataPropagatingRegisterDecorator);
......
......@@ -25,13 +25,7 @@ namespace ChimeraTK {
template<typename T>
void MetaDataPropagatingRegisterDecorator<T>::doPreWrite(TransferType type, VersionNumber versionNumber) {
if(localValidity == DataValidity::faulty) {
ChimeraTK::NDRegisterAccessorDecorator<T>::setDataValidity(DataValidity::faulty);
}
else {
ChimeraTK::NDRegisterAccessorDecorator<T>::setDataValidity(_owner->getDataValidity());
}
ChimeraTK::NDRegisterAccessorDecorator<T>::setDataValidity(_owner->getDataValidity());
NDRegisterAccessorDecorator<T, T>::doPreWrite(type, versionNumber);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment