Skip to content

Commit

Permalink
Merge pull request #2863 from mbiesek/benchmark-dead-code
Browse files Browse the repository at this point in the history
benchmark: remove dead code
  • Loading branch information
krzycz authored Apr 17, 2018
2 parents 32629b8 + 469550b commit 152ea2b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/benchmarks/pmemobj_atomic_lists.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,14 @@ get_item(struct benchmark *bench, struct operation_info *info)
* benchmarks. It gets pointer to element on the list where object will be
* inserted/removed/moved to/from.
*/
static int
static void
get_move_item(struct benchmark *bench, struct operation_info *info)
{
auto *obj_worker = (struct obj_worker *)info->worker->priv;
obj_worker->list_move->elm =
obj_bench.fn_position(obj_worker->list_move, info->index);

get_item(bench, info);

return 0;
}

/*
Expand Down Expand Up @@ -655,8 +653,7 @@ obj_remove_free_op(struct benchmark *bench, struct operation_info *info)
static int
obj_move_op(struct benchmark *bench, struct operation_info *info)
{
if (get_move_item(bench, info))
return -1;
get_move_item(bench, info);

auto *obj_worker = (struct obj_worker *)info->worker->priv;
POBJ_LIST_MOVE_ELEMENT_BEFORE(obj_bench.pop, &obj_worker->head,
Expand Down

0 comments on commit 152ea2b

Please sign in to comment.