Skip to content

Commit ee08f36

Browse files
committed
[RF][HS3] Remove unused constructor
Follow up on the previous commit 4c545d7, removing a constructor of an internal class that is now unused.
1 parent 4c545d7 commit ee08f36

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

roofit/hs3/src/RooJSONFactoryWSTool.cxx

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@ struct Var {
160160
* @param n Number of bins.
161161
*/
162162
Var(int n) : nbins(n), min(0), max(n) {}
163-
164-
/**
165-
* @brief Constructor for Var from JSONNode.
166-
* @param val JSONNode containing variable information.
167-
*/
168-
Var(const JSONNode &val);
169163
};
170164

171165
/**
@@ -257,34 +251,6 @@ JSONNode const *getVariablesNode(JSONNode const &rootNode)
257251
return &((*out)["parameters"]);
258252
}
259253

260-
Var::Var(const JSONNode &val)
261-
{
262-
if (val.find("edges")) {
263-
for (auto const &child : val.children()) {
264-
this->edges.push_back(child.val_double());
265-
}
266-
this->nbins = this->edges.size();
267-
this->min = this->edges[0];
268-
this->max = this->edges[this->nbins - 1];
269-
} else {
270-
if (!val.find("nbins")) {
271-
this->nbins = 1;
272-
} else {
273-
this->nbins = val["nbins"].val_int();
274-
}
275-
if (!val.find("min")) {
276-
this->min = 0;
277-
} else {
278-
this->min = val["min"].val_double();
279-
}
280-
if (!val.find("max")) {
281-
this->max = 1;
282-
} else {
283-
this->max = val["max"].val_double();
284-
}
285-
}
286-
}
287-
288254
std::string genPrefix(const JSONNode &p, bool trailing_underscore)
289255
{
290256
std::string prefix;

0 commit comments

Comments
 (0)