diff --git a/Rich/RichFutureRecMonitors/src/RichDetectorHits.cpp b/Rich/RichFutureRecMonitors/src/RichDetectorHits.cpp
index 1545fb653418d1771df5fe355292d69b7f6cedd7..e04a7952c0a87e9a5827034e63398ed5e6442d28 100644
--- a/Rich/RichFutureRecMonitors/src/RichDetectorHits.cpp
+++ b/Rich/RichFutureRecMonitors/src/RichDetectorHits.cpp
@@ -182,13 +182,8 @@ namespace Rich::Future::Rec::Moni {
         const auto& yaxis = h_pdXYOcc[rich].axis<1>();
         for ( auto iX = 0u; iX < xaxis.nBins; ++iX ) {
           for ( auto iY = 0u; iY < yaxis.nBins; ++iY ) {
-#if GAUDI_MAJOR_VERSION < 39
-            const auto X = xaxis.minValue + ( ( 0.5 + iX ) * ( xaxis.maxValue - xaxis.minValue ) / xaxis.nBins );
-            const auto Y = yaxis.minValue + ( ( 0.5 + iY ) * ( yaxis.maxValue - yaxis.minValue ) / yaxis.nBins );
-#else
             const auto X = xaxis.minValue() + ( ( 0.5 + iX ) * ( xaxis.maxValue() - xaxis.minValue() ) / xaxis.nBins );
             const auto Y = yaxis.minValue() + ( ( 0.5 + iY ) * ( yaxis.maxValue() - yaxis.minValue() ) / yaxis.nBins );
-#endif
             const auto occ = pdOccXY[iX][iY];
             hb_pdXYOcc[rich][{X, Y}] += occ;
             hb_pdXOcc[rich][X] += occ;