Skip to content

Commit 6a26d78

Browse files
committed
remove useless declarations
1 parent cf35ff3 commit 6a26d78

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/pyscipopt/scip.pxi

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6077,8 +6077,6 @@ cdef class Model:
60776077
int
60786078
60796079
"""
6080-
cdef int nvars
6081-
cdef SCIP_Bool success
60826080

60836081
return SCIPgetNVarsAnd(self._scip, and_cons.scip_cons)
60846082

@@ -6096,9 +6094,9 @@ cdef class Model:
60966094
list of Variable
60976095
60986096
"""
6097+
60996098
cdef SCIP_VAR** _vars
61006099
cdef int nvars
6101-
cdef SCIP_Bool success
61026100
cdef int i
61036101

61046102
constype = bytes(SCIPconshdlrGetName(SCIPconsGetHdlr(and_cons.scip_cons))).decode('UTF-8')
@@ -6136,8 +6134,8 @@ cdef class Model:
61366134
Variable
61376135
61386136
"""
6137+
61396138
cdef SCIP_VAR* _resultant
6140-
cdef SCIP_Bool success
61416139

61426140
_resultant = SCIPgetResultantAnd(self._scip, and_cons.scip_cons)
61436141

@@ -6167,8 +6165,7 @@ cdef class Model:
61676165
bool
61686166
61696167
"""
6170-
cdef SCIP_Bool success
6171-
6168+
61726169
return SCIPisAndConsSorted(self._scip, and_cons.scip_cons)
61736170

61746171
def sortAndCons(self, Constraint and_cons):
@@ -6181,7 +6178,6 @@ cdef class Model:
61816178
Constraint to sort.
61826179
61836180
"""
6184-
cdef SCIP_Bool success
61856181

61866182
PY_SCIP_CALL(SCIPsortAndCons(self._scip, and_cons.scip_cons))
61876183

0 commit comments

Comments
 (0)