Skip to content

Commit bdfd632

Browse files
committed
[df] Inline HistoUtils::SetCanExtendAllAxes
It is only used in one place where we know it is a TH1D.
1 parent bf9ce48 commit bdfd632

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ struct Book{};
108108

109109
template <typename T, bool ISV6HISTO = std::is_base_of<TH1, std::decay_t<T>>::value>
110110
struct HistoUtils {
111-
static void SetCanExtendAllAxes(T &h) { h.SetCanExtend(::TH1::kAllAxes); }
112111
static bool HasAxisLimits(T &h)
113112
{
114113
auto xaxis = h.GetXaxis();
@@ -118,7 +117,6 @@ struct HistoUtils {
118117

119118
template <typename T>
120119
struct HistoUtils<T, false> {
121-
static void SetCanExtendAllAxes(T &) {}
122120
static bool HasAxisLimits(T &) { return true; }
123121
};
124122

tree/dataframe/inc/ROOT/RDF/RInterface.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ public:
19421942
}
19431943

19441944
if (h->GetXaxis()->GetXmax() == h->GetXaxis()->GetXmin())
1945-
RDFInternal::HistoUtils<::TH1D>::SetCanExtendAllAxes(*h);
1945+
h->SetCanExtend(::TH1::kAllAxes);
19461946
return CreateAction<RDFInternal::ActionTags::Histo1D, V>(validatedColumns, h, h, fProxiedPtr);
19471947
}
19481948

0 commit comments

Comments
 (0)