From 717e6a12a798896303e037e7a9b925a4935c54e5 Mon Sep 17 00:00:00 2001 From: silverweed Date: Thu, 30 Apr 2026 08:41:36 +0200 Subject: [PATCH] [ntuple] Remove deprecated overload of RField::SetQuantized --- tree/ntuple/inc/ROOT/RField/RFieldFundamental.hxx | 3 --- tutorials/io/ntuple/ntpl018_low_precision_floats.C | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tree/ntuple/inc/ROOT/RField/RFieldFundamental.hxx b/tree/ntuple/inc/ROOT/RField/RFieldFundamental.hxx index 3fcaf295b5cab..7e87c8203e7b9 100644 --- a/tree/ntuple/inc/ROOT/RField/RFieldFundamental.hxx +++ b/tree/ntuple/inc/ROOT/RField/RFieldFundamental.hxx @@ -480,9 +480,6 @@ public: fValueMin = valueRange.first; fValueMax = valueRange.second; } - - R__DEPRECATED(6, 42, "Use SetQuantized(std::size_t nBits, std::pair valueRange) instead") - void SetQuantized(T minValue, T maxValue, std::size_t nBits) { SetQuantized(nBits, {minValue, maxValue}); } }; template <> diff --git a/tutorials/io/ntuple/ntpl018_low_precision_floats.C b/tutorials/io/ntuple/ntpl018_low_precision_floats.C index 5832f231c2d79..a256f1c650e75 100644 --- a/tutorials/io/ntuple/ntpl018_low_precision_floats.C +++ b/tutorials/io/ntuple/ntpl018_low_precision_floats.C @@ -61,7 +61,7 @@ static void Write() auto fieldReal32Quant = std::make_unique>("myReal32Quant"); // Declare that this field will never store values outside of the [-1, 1] range (this will be checked dynamically) // and that we want to dedicate 24 bits to this number on disk. - fieldReal32Quant->SetQuantized(-1., 1., 24); + fieldReal32Quant->SetQuantized(24, {-1., 1.}); model->AddField(std::move(fieldReal32Quant)); }