From 3aa2a4ac8c046b548792dffb9032953d5d5211e2 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 17 Jun 2014 13:29:31 +1000 Subject: [PATCH] Remove PathScanner class from libpbd --- libs/pbd/pbd/pathscanner.h | 74 -------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 libs/pbd/pbd/pathscanner.h diff --git a/libs/pbd/pbd/pathscanner.h b/libs/pbd/pbd/pathscanner.h deleted file mode 100644 index e4d2f6aa0e..0000000000 --- a/libs/pbd/pbd/pathscanner.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - Copyright (C) 2000-2007 Paul Davis - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -*/ - -#ifndef __libmisc_pathscanner_h__ -#define __libmisc_pathscanner_h__ - -#include -#include -#ifdef COMPILER_MSVC -#include -#else -#include -#endif - -#include "pbd/libpbd_visibility.h" - -#include "pbd/file_utils.h" - -class LIBPBD_API PathScanner - -{ - public: - std::vector operator() (const std::string &dirpath, - bool (*filter)(const std::string &, void *arg), - void *arg, - bool match_fullpath = true, - bool return_fullpath = true, - long limit = -1, - bool recurse = false) { - std::vector result; - PBD::find_files_matching_filter (result, dirpath, - filter, arg, - match_fullpath, return_fullpath, - limit, recurse); - return result; - } - - std::vector operator() (const std::string &dirpath, - const std::string ®exp, - bool match_fullpath = true, - bool return_fullpath = true, - long limit = -1, - bool recurse = false) - { - std::vector result; - - PBD::find_files_matching_regex (result, - dirpath, - regexp, - match_fullpath, - return_fullpath, - limit, recurse); - - return result; - } -}; - -#endif // __libmisc_pathscanner_h__