summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/fluxbox-update_configs.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index 40962da..fcb9bc2 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -489,12 +489,6 @@ string read_file(const string& filename) {
489 string linebuffer; 489 string linebuffer;
490 while (!infile.eof()) { 490 while (!infile.eof()) {
491 getline(infile, linebuffer); 491 getline(infile, linebuffer);
492
493 // check if we read something at all. if its 0, its a strange file
494 // (eg a directory) or we are at the end
495 if (infile.gcount() == 0) {
496 break;
497 }
498 whole_file += linebuffer + "\n"; 492 whole_file += linebuffer + "\n";
499 } 493 }
500 infile.close(); 494 infile.close();