File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff 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-
288254std::string genPrefix (const JSONNode &p, bool trailing_underscore)
289255{
290256 std::string prefix;
You can’t perform that action at this time.
0 commit comments