From 74df62b0812d33608b88ed74dc89c0d94c818613 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 3 Jan 2015 18:39:46 +0100 Subject: Remove unused code / option from FbRun --- doc/asciidoc/fbrun.txt | 3 --- util/fbrun/main.cc | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/asciidoc/fbrun.txt b/doc/asciidoc/fbrun.txt index c690f8c..c2efcf1 100644 --- a/doc/asciidoc/fbrun.txt +++ b/doc/asciidoc/fbrun.txt @@ -63,9 +63,6 @@ OPTIONS *-font* 'name':: Text font name -*-na*:: - Disable font antialias - *-hf* 'filename':: History file to load. The default is *~/.fluxbox/fbrun_history*. diff --git a/util/fbrun/main.cc b/util/fbrun/main.cc index 13da81a..16ca923 100644 --- a/util/fbrun/main.cc +++ b/util/fbrun/main.cc @@ -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_pos = false; // set position bool near_mouse = false; // popup near mouse - bool antialias = true; // antialias text bool print = false; string fontname; // font name string title("Run program"); // default title @@ -114,8 +113,6 @@ int main(int argc, char **argv) { foreground = argv[++i]; } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) { background = argv[++i]; - } else if (strcmp(argv[i], "-na") == 0) { - antialias = false; } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) { history_file = argv[++i]; } else if (arg == "-h" || arg == "-help" || arg == "--help") { @@ -154,8 +151,7 @@ int main(int argc, char **argv) { fbrun.resize(fbrun.width(), height); if (set_width) fbrun.resize(width, fbrun.height()); - //if (antialias) - // fbrun.setAntialias(antialias); + // expand and load command history string expanded_filename = FbTk::StringUtil::expandFilename(history_file); if (!fbrun.loadHistory(expanded_filename.c_str())) -- cgit v0.11.2