From 786d8bacc0709bccdfa91eeefb9ce8a4beb546b6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Sun, 14 Sep 2014 19:08:07 +0200 Subject: Code cleanup File name expansion is done internally by the Slit::loadClientList, so there is no need to duplicate the code. --- src/fluxbox.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 3658e50..5771cb3 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -1183,9 +1183,7 @@ void Fluxbox::load_rc() { FbTk::Transparent::usePseudoTransparent(*m_rc_pseudotrans); - if (!m_rc_slitlistfile->empty()) { - *m_rc_slitlistfile = StringUtil::expandFilename(*m_rc_slitlistfile); - } else { + if (m_rc_slitlistfile->empty()) { string filename = getDefaultDataFilename("slitlist"); m_rc_slitlistfile.setFromString(filename.c_str()); } -- cgit v0.11.2