Skip to content

Commit 3c3e2a2

Browse files
authored
[orc-rt] Remove unused Session argument from WrapperFunction::call. (#169255)
1 parent b73a281 commit 3c3e2a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

orc-rt/include/orc-rt/WrapperFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ struct WrapperFunction {
346346

347347
if (auto ArgBytes = Z.arguments().serialize(std::forward<ArgTs>(Args)...)) {
348348
C(
349-
[RH = std::move(RH), Z = std::move(Z)](
350-
orc_rt_SessionRef S, WrapperFunctionBuffer ResultBytes) mutable {
349+
[RH = std::move(RH),
350+
Z = std::move(Z)](WrapperFunctionBuffer ResultBytes) mutable {
351351
if (const char *ErrMsg = ResultBytes.getOutOfBandError())
352352
RH(make_error<StringError>(ErrMsg));
353353
else

orc-rt/unittests/DirectCaller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DirectCaller {
3737
DirectResultSenderImpl(ImplFn &&Fn) : Fn(std::forward<ImplFn>(Fn)) {}
3838
void send(orc_rt_SessionRef S,
3939
orc_rt::WrapperFunctionBuffer ResultBytes) override {
40-
Fn(S, std::move(ResultBytes));
40+
Fn(std::move(ResultBytes));
4141
}
4242

4343
private:

0 commit comments

Comments
 (0)