From 675bbfd80b185f0c7c186b8338f7245bd2c1bb93 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sun, 21 Aug 2011 20:42:41 +0200 Subject: Remove leftover debugging code from main.cc --- src/main.cc | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/main.cc b/src/main.cc index 5149615..27b1077 100644 --- a/src/main.cc +++ b/src/main.cc @@ -416,19 +416,6 @@ void updateConfigFilesIfNeeded(const std::string& rc_file) { #include "WinButton.hh" int main(int argc, char **argv) { -#if 0 - lua::state l; - FbTk::LResourceManager::initState(l); - FbTk::LResourceManager man("session", l); - l.loadstring("session.asdf = {'close', 'close'}; session.q={{1,2,{3,4}},{{z={{5}}}}};"); - l.call(0,0); - man.save("/dev/stdout", NULL); - FbTk::Resource, FbTk::VectorTraits > > asdf(man, std::vector(), "asdf", "ASDF"); - cout << "asdf: " << asdf.getString() << endl; - man.save("/dev/stdout", NULL); - return 0; -#endif - FbTk::NLSInit("fluxbox.cat"); Options opts; @@ -469,7 +456,7 @@ int main(int argc, char **argv) { updateConfigFilesIfNeeded(opts.rc_file); auto_ptr fluxbox; -// try { + try { fluxbox.reset(new Fluxbox(argc, argv, opts.session_display, @@ -480,7 +467,7 @@ int main(int argc, char **argv) { exitcode = EXIT_SUCCESS; - /* } catch (out_of_range &oor) { + } catch (out_of_range &oor) { cerr <<"Fluxbox: " << _FB_CONSOLETEXT(main, ErrorOutOfRange, "Out of range", "Error message") << ": " @@ -514,7 +501,7 @@ int main(int argc, char **argv) { << _FB_CONSOLETEXT(main, ErrorUnknown, "Unknown error", "Error message") << "." << endl; abort(); - }*/ + } bool restarting = false; string restart_argument; -- cgit v0.11.2