Remove unused code / option from FbRun

This commit is contained in:
Mathias Gumz 2015-01-03 18:39:46 +01:00
parent 3e76d43987
commit 74df62b081
2 changed files with 1 additions and 8 deletions

View file

@ -63,9 +63,6 @@ OPTIONS
*-font* 'name':: *-font* 'name'::
Text font name Text font name
*-na*::
Disable font antialias
*-hf* 'filename':: *-hf* 'filename'::
History file to load. The default is *~/.fluxbox/fbrun_history*. History file to load. The default is *~/.fluxbox/fbrun_history*.

View file

@ -75,7 +75,6 @@ int main(int argc, char **argv) {
bool set_height = false, set_width=false; // use height/width of font by default bool set_height = false, set_width=false; // use height/width of font by default
bool set_pos = false; // set position bool set_pos = false; // set position
bool near_mouse = false; // popup near mouse bool near_mouse = false; // popup near mouse
bool antialias = true; // antialias text
bool print = false; bool print = false;
string fontname; // font name string fontname; // font name
string title("Run program"); // default title string title("Run program"); // default title
@ -114,8 +113,6 @@ int main(int argc, char **argv) {
foreground = argv[++i]; foreground = argv[++i];
} else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) { } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) {
background = argv[++i]; background = argv[++i];
} else if (strcmp(argv[i], "-na") == 0) {
antialias = false;
} else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) { } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) {
history_file = argv[++i]; history_file = argv[++i];
} else if (arg == "-h" || arg == "-help" || arg == "--help") { } else if (arg == "-h" || arg == "-help" || arg == "--help") {
@ -154,8 +151,7 @@ int main(int argc, char **argv) {
fbrun.resize(fbrun.width(), height); fbrun.resize(fbrun.width(), height);
if (set_width) if (set_width)
fbrun.resize(width, fbrun.height()); fbrun.resize(width, fbrun.height());
//if (antialias)
// fbrun.setAntialias(antialias);
// expand and load command history // expand and load command history
string expanded_filename = FbTk::StringUtil::expandFilename(history_file); string expanded_filename = FbTk::StringUtil::expandFilename(history_file);
if (!fbrun.loadHistory(expanded_filename.c_str())) if (!fbrun.loadHistory(expanded_filename.c_str()))