Skip to content

Commit

Permalink
modules/kvs: Remove fence_set_flags()
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Feb 9, 2018
1 parent da6750e commit b90f2b4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/modules/kvs/fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ int fence_get_flags (fence_t *f)
return f->flags;
}

void fence_set_flags (fence_t *f, int flags)
{
f->flags = flags;
}

json_t *fence_get_json_ops (fence_t *f)
{
return f->ops;
Expand Down
1 change: 0 additions & 1 deletion src/modules/kvs/fence.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ bool fence_count_reached (fence_t *f);

int fence_get_nprocs (fence_t *f);
int fence_get_flags (fence_t *f);
void fence_set_flags (fence_t *f, int flags);

json_t *fence_get_json_ops (fence_t *f);

Expand Down
9 changes: 2 additions & 7 deletions src/modules/kvs/test/fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,10 @@ void basic_api_tests (void)
"initial fence_count_reached() is false");

ok (fence_get_nprocs (f) == 1,
"initial fence_get_nprocs works");
"fence_get_nprocs works");

ok (fence_get_flags (f) == 3,
"initial fence_get_flags works");

fence_set_flags (f, 5),

ok (fence_get_flags (f) == 5,
"changed flags, fence_get_flags works");
"fence_get_flags works");

ok ((o = fence_get_json_names (f)) != NULL,
"initial fence_get_json_names works");
Expand Down

0 comments on commit b90f2b4

Please sign in to comment.