Skip to content

Commit 7997c12

Browse files
committed
reapi: remove old interface for cli match allocate
Problem: the c++ bindings for the cli included two overloaded functions for match allocate. One of those functions used a a boolean flag as a parameter and converted it to enum to call the newer interface. This function is no longer needed. remove it.
1 parent b60e200 commit 7997c12

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

resource/reapi/bindings/c++/reapi_cli.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ class resource_query_t {
130130

131131
class reapi_cli_t : public reapi_t {
132132
public:
133-
static int match_allocate (void *h, bool orelse_reserve,
134-
const std::string &jobspec,
135-
const uint64_t jobid, bool &reserved,
136-
std::string &R, int64_t &at, double &ov);
137133
static int match_allocate (void *h, match_op_t match_op,
138134
const std::string &jobspec,
139135
const uint64_t jobid, bool &reserved,

resource/reapi/bindings/c++/reapi_cli_impl.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,6 @@ int reapi_cli_t::match_allocate (void *h, match_op_t match_op,
163163
return rc;
164164
}
165165

166-
int reapi_cli_t::match_allocate (void *h, bool orelse_reserve,
167-
const std::string &jobspec,
168-
const uint64_t jobid, bool &reserved,
169-
std::string &R, int64_t &at, double &ov)
170-
{
171-
match_op_t match_op = orelse_reserve ?
172-
match_op_t::MATCH_ALLOCATE_ORELSE_RESERVE :
173-
match_op_t::MATCH_ALLOCATE;
174-
175-
return match_allocate (h, match_op, jobspec, jobid, reserved,
176-
R, at, ov);
177-
}
178-
179166
int reapi_cli_t::update_allocate (void *h, const uint64_t jobid,
180167
const std::string &R, int64_t &at, double &ov,
181168
std::string &R_out)

0 commit comments

Comments
 (0)