test/librbd, Crimson: remove some unused captures
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
void expect_io_object_dispatcher_register_state(MockParentImageCache& mparent_image_cache,
int ret_val) {
auto& expect = EXPECT_CALL((*(mparent_image_cache.get_image_ctx()->io_object_dispatcher)),
- register_object_dispatch(_));
+ register_dispatch(_));
- expect.WillOnce(WithArg<0>(Invoke([ret_val, &mparent_image_cache]
+ expect.WillOnce(WithArg<0>(Invoke([&mparent_image_cache]
(io::ObjectDispatchInterface* object_dispatch) {
ASSERT_EQ(object_dispatch, &mparent_image_cache);
})));