Maelstrom: Removed a couple of obsolete command line options.

https://github.com/libsdl-org/Maelstrom/commit/4b7b6810931535edc190d5dd874184cce8b87926

From 4b7b6810931535edc190d5dd874184cce8b87926 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 30 Oct 2011 10:26:06 -0400
Subject: [PATCH] Removed a couple of obsolete command line options.

---
 main.cpp | 45 ---------------------------------------------
 1 file changed, 45 deletions(-)

diff --git a/main.cpp b/main.cpp
index 31bd6817..62fec636 100644
--- a/main.cpp
+++ b/main.cpp
@@ -170,28 +170,6 @@ class SetVolumeDelegate : public UIButtonDelegate
 	int m_volume;
 };
 
-/* ----------------------------------------------------------------- */
-/* -- Run a graphics speed test.                                     */
-static void RunSpeedTest(void)
-{
-	const int test_reps = 100;	/* How many full cycles to run */
-
-	Uint32 then, now;
-	int i, frame, x=((640/2)-16), y=((480/2)-16);
-
-	then = SDL_GetTicks();
-	for ( i=0; i<test_reps; ++i ) {
-		for ( frame=0; frame<SHIP_FRAMES; ++frame ) {
-			screen->Clear();
-			screen->QueueBlit(x, y, gPlayerShip->sprite[frame]);
-			screen->Update();
-		}
-	}
-	now = SDL_GetTicks();
-	mesg("Graphics speed test took %d milliseconds per cycle.\r\n",
-						((now-then)/test_reps));
-}
-
 /* ----------------------------------------------------------------- */
 /* -- Print a Usage message and quit.
       In several places we depend on this function exiting.
@@ -199,15 +177,12 @@ static void RunSpeedTest(void)
 static char *progname;
 void PrintUsage(void)
 {
-	error("\nUsage: %s [-netscores] -printscores\n", progname);
-	error("or\n");
 	error("Usage: %s <options>\n\n", progname);
 	error("Where <options> can be any of:\n\n"
 "	-fullscreen		# Run Maelstrom in full-screen mode\n"
 "	-windowed		# Run Maelstrom in windowed mode\n"
 "	-gamma [0-8]		# Set the gamma correction\n"
 "	-volume [0-8]		# Set the sound volume\n"
-"	-netscores		# Use the world-wide network score server\n"
 	);
 	LogicUsage();
 	error("\n");
@@ -219,8 +194,6 @@ void PrintUsage(void)
 int main(int argc, char *argv[])
 {
 	/* Command line flags */
-	int doprinthigh = 0;
-	int speedtest = 0;
 	Uint32 window_flags = 0;
 	Uint32 render_flags = SDL_RENDERER_PRESENTVSYNC;
 
@@ -302,12 +275,6 @@ int main(int argc, char *argv[])
 
 			++argv;
 			--argc;
-		}
-		else if ( strcmp(argv[1], "-printscores") == 0 )
-			doprinthigh = 1;
-		else if ( strcmp(argv[1], "-speedtest") == 0 ) {
-			speedtest = 1;
-			render_flags &= ~SDL_RENDERER_PRESENTVSYNC;
 		} else if ( LogicParseArgs(&argv, &argc) == 0 ) {
 			/* LogicParseArgs() took care of everything */;
 		} else if ( strcmp(argv[1], "-version") == 0 ) {
@@ -318,12 +285,6 @@ int main(int argc, char *argv[])
 		}
 	}
 
-	/* Do we just want the high scores? */
-	if ( doprinthigh ) {
-		PrintHighScores();
-		exit(0);
-	}
-
 	/* Make sure we have a valid player list (netlogic) */
 	if ( InitLogic() < 0 )
 		exit(1);
@@ -334,12 +295,6 @@ int main(int argc, char *argv[])
 		exit(1);
 	}
 
-	if ( speedtest ) {
-		RunSpeedTest();
-		CleanUp();
-		exit(0);
-	}
-
 	DropEvents();
 	gRunning = true;
 //	while ( sound->Playing() )