Skip to content

Commit

Permalink
Remove QV_RC_LAST. (#195)
Browse files Browse the repository at this point in the history
This code isn't needed anymore.

Signed-off-by: Samuel K. Gutierrez <[email protected]>
  • Loading branch information
samuelkgutierrez authored Jul 5, 2024
1 parent 1aaac28 commit 9e5f104
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions include/quo-vadis.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ enum {
QV_ERR_NOT_FOUND,
QV_ERR_SPLIT,
/** Resources unavailable. */
QV_RES_UNAVAILABLE,
/** Sentinel value. */
QV_RC_LAST
QV_RES_UNAVAILABLE
};

/**
Expand Down
2 changes: 0 additions & 2 deletions src/fortran/quo-vadisf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module quo_vadisf
integer(c_int) QV_ERR_NOT_FOUND
integer(c_int) QV_ERR_SPLIT
integer(c_int) QV_RES_UNAVAILABLE
integer(c_int) QV_RC_LAST

parameter (QV_SUCCESS = 0)
parameter (QV_SUCCESS_ALREADY_DONE = 1)
Expand All @@ -53,7 +52,6 @@ module quo_vadisf
parameter (QV_ERR_NOT_FOUND = 18)
parameter (QV_ERR_SPLIT = 19)
parameter (QV_RES_UNAVAILABLE = 20)
parameter (QV_RC_LAST = 21)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Intrinsic Scopes
Expand Down
3 changes: 1 addition & 2 deletions src/qvi-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ static const std::map<uint_t, std::string> qvi_rc2str = {
{QV_ERR_POP, "Pop operation error"},
{QV_ERR_NOT_FOUND, "Not found"},
{QV_ERR_SPLIT, "Split error"},
{QV_RES_UNAVAILABLE, "Resources unavailable"},
{QV_RC_LAST, ""}
{QV_RES_UNAVAILABLE, "Resources unavailable"}
};

const char *
Expand Down

0 comments on commit 9e5f104

Please sign in to comment.