aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-03 17:39:46 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-03 17:39:46 (GMT)
commit74df62b0812d33608b88ed74dc89c0d94c818613 (patch)
treec64371257e4abd3766ef50a285cc8d7a75fd0016
parent3e76d439870f2a0d688fd4e0080b9f9f032146df (diff)
downloadfluxbox-74df62b0812d33608b88ed74dc89c0d94c818613.zip
fluxbox-74df62b0812d33608b88ed74dc89c0d94c818613.tar.bz2
Remove unused code / option from FbRun
-rw-r--r--doc/asciidoc/fbrun.txt3
-rw-r--r--util/fbrun/main.cc6
2 files changed, 1 insertions, 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
63*-font* 'name':: 63*-font* 'name'::
64 Text font name 64 Text font name
65 65
66*-na*::
67 Disable font antialias
68
69*-hf* 'filename':: 66*-hf* 'filename'::
70 History file to load. The default is *~/.fluxbox/fbrun_history*. 67 History file to load. The default is *~/.fluxbox/fbrun_history*.
71 68
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) {
75 bool set_height = false, set_width=false; // use height/width of font by default 75 bool set_height = false, set_width=false; // use height/width of font by default
76 bool set_pos = false; // set position 76 bool set_pos = false; // set position
77 bool near_mouse = false; // popup near mouse 77 bool near_mouse = false; // popup near mouse
78 bool antialias = true; // antialias text
79 bool print = false; 78 bool print = false;
80 string fontname; // font name 79 string fontname; // font name
81 string title("Run program"); // default title 80 string title("Run program"); // default title
@@ -114,8 +113,6 @@ int main(int argc, char **argv) {
114 foreground = argv[++i]; 113 foreground = argv[++i];
115 } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) { 114 } else if (strcmp(argv[i], "-bg") == 0 && i+1 < argc) {
116 background = argv[++i]; 115 background = argv[++i];
117 } else if (strcmp(argv[i], "-na") == 0) {
118 antialias = false;
119 } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) { 116 } else if (strcmp(argv[i], "-hf") == 0 && i+1 < argc) {
120 history_file = argv[++i]; 117 history_file = argv[++i];
121 } else if (arg == "-h" || arg == "-help" || arg == "--help") { 118 } else if (arg == "-h" || arg == "-help" || arg == "--help") {
@@ -154,8 +151,7 @@ int main(int argc, char **argv) {
154 fbrun.resize(fbrun.width(), height); 151 fbrun.resize(fbrun.width(), height);
155 if (set_width) 152 if (set_width)
156 fbrun.resize(width, fbrun.height()); 153 fbrun.resize(width, fbrun.height());
157 //if (antialias) 154
158 // fbrun.setAntialias(antialias);
159 // expand and load command history 155 // expand and load command history
160 string expanded_filename = FbTk::StringUtil::expandFilename(history_file); 156 string expanded_filename = FbTk::StringUtil::expandFilename(history_file);
161 if (!fbrun.loadHistory(expanded_filename.c_str())) 157 if (!fbrun.loadHistory(expanded_filename.c_str()))