Skip to content

Commit

Permalink
pkgutil.{cpp,h}: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Jan 14, 2024
1 parent a1e5dc1 commit 313bada
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/pkgutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,14 +905,6 @@ db_lock::~db_lock()
}
}

void
assert_argument(char** argv, int argc, int index)
{
if (argc - 1 < index + 1)
throw runtime_error("option " + string(argv[index]) +
" requires an argument");
}

string
itos(unsigned int value)
{
Expand Down
2 changes: 0 additions & 2 deletions src/pkgutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ class runtime_error_with_errno : public runtime_error
/*
* Utility functions.
*/
void assert_argument(char** argv, int argc, int index);

string itos(unsigned int value);

string mtos(mode_t mode);
Expand Down

0 comments on commit 313bada

Please sign in to comment.