Skip to content
Browse files

Remove fieldoutput and fieldfile options

  • Loading branch information...
1 parent 715aeea commit 508c759ef2280b5c874aade294cd37cc2bcba880 @Mortal committed Oct 28, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −8 minesweeper.cpp
  2. +0 −2 types.h
View
8 minesweeper.cpp
@@ -42,8 +42,6 @@ int main(int argc, char* argv[])
opts.verbose = false;
opts.ai = false;
opts.waitonquit = false;
- opts.fieldoutput = false;
- opts.fieldfile = "";
#ifdef TIMING
opts.timer = new Timer;
#else
@@ -62,14 +60,8 @@ int main(int argc, char* argv[])
opts.verbose = !opts.verbose;
} else if (*argi == "--ai") {
opts.ai = !opts.ai;
- } else if (*argi == "-F" || *argi == "--fieldoutput") {
- opts.fieldoutput = !opts.fieldoutput;
} else if (*argi == "-w" || *argi == "--wait") {
opts.waitonquit = !opts.waitonquit;
- } else if (*argi == "-f" || *argi == "--fieldfile") {
- ++argi;
- if (argi == args.end()) break;
- opts.fieldfile = *argi;
} else {
unsigned int input;
std::stringstream numstream(*argi);
View
2 types.h
@@ -29,8 +29,6 @@ struct ProgramOptions {
bool ai;
bool waitonquit;
class NullTimer *timer;
- std::string fieldfile;
- bool fieldoutput;
};
#endif

0 comments on commit 508c759

Please sign in to comment.
Something went wrong with that request. Please try again.