Skip to content

Commit 1db0855

Browse files
committed
remove duplicate declaration of pb_variable util function
1 parent 4247d24 commit 1db0855

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

libsnark/gadgetlib1/pb_variable.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,6 @@ class pb_variable_array : private std::vector<pb_variable<FieldT>>
9494
FieldT get_field_element_from_bits(const protoboard<FieldT> &pb) const;
9595
};
9696

97-
/// A utility function which creates and allocates a variable in a single step
98-
/// (and can therefore be used in initalizer lists, which greatly simplifies
99-
/// many constructors).
100-
///
101-
/// TODO: Why does pb_variable not have an allocating constructor of this form,
102-
/// even further simplifying a lot of code. Move this to an appropriate
103-
/// constructor if there are no issues.
104-
template<typename FieldT>
105-
pb_variable<FieldT> pb_variable_allocate(
106-
protoboard<FieldT> &pb, const std::string &annotation);
107-
10897
/* index 0 corresponds to the constant term (used in legacy code) */
10998
#define ONE pb_variable<FieldT>(0)
11099

0 commit comments

Comments
 (0)