From 42a0b31ebc10bea7e205e04c12b590afbcc27b3d Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Wed, 30 Apr 2014 18:48:23 +0200 Subject: Moved file reading functionality into local functions * it was moved into functions local to the respective compilation unit to improve readability ** splits DOM tree construction logic from the actual purpose of the external function --- src/support/filesystem_context.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/support') diff --git a/src/support/filesystem_context.cc b/src/support/filesystem_context.cc index 6ad682f..d3caf88 100644 --- a/src/support/filesystem_context.cc +++ b/src/support/filesystem_context.cc @@ -35,8 +35,7 @@ void FilesystemContext::iterate( ) const { const boost::filesystem::path directory(this->resolve(path)); - if ( boost::filesystem::exists(directory) && - boost::filesystem::is_directory(directory) ) { + if ( boost::filesystem::is_directory(directory) ) { for ( boost::filesystem::directory_iterator iter(directory); iter != boost::filesystem::directory_iterator(); ++iter ) { -- cgit v1.2.3