Skip to content

Commit

Permalink
Remove unused error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Aug 12, 2024
1 parent dd50206 commit 1f7e799
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ void displayError (const char *arg0, errnum_t num)

switch (num)
{
case errnum_t::SYNTAX:
cerr << "command line syntax error" << endl
<< "Try `" << arg0 << " --help' for more information." << endl;
break;

case errnum_t::NOT_ENOUGH_MEMORY:
cerr << "ERROR: Not enough memory." << endl;
break;
Expand All @@ -133,10 +128,6 @@ void displayError (const char *arg0, errnum_t num)
cerr << "ERROR: Could not install signal handler." << endl;
break;

case errnum_t::FILE_OPEN:
cerr << "ERROR: Could not open file for binary input." << endl;
break;

default: break;
}
}
4 changes: 1 addition & 3 deletions src/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ enum class output_t
// Error and status message numbers.
enum class errnum_t
{
SYNTAX,
NOT_ENOUGH_MEMORY,
SIGHANDLER,
FILE_OPEN
SIGHANDLER
};

// Songlength DB.
Expand Down

0 comments on commit 1f7e799

Please sign in to comment.