aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-07-23 11:08:35 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:32 +0200
commite9e51e0041abbbf950ed11d6b4fea8616cbd28bb (patch)
tree220d6d588e95583fb76838a2bf143eabb22bea8c /src
parent531d05df58bcb20e051c6ebe77c6583322b84dcb (diff)
Add more c++ file extensions
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ecbf9cd..6dfd256 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -212,21 +212,6 @@ void validateFilePath(const _tinydir_char_t *projectConfPath)
}
}
-const _tinydir_char_t *sourceFileExtensions[] = { TINYDIR_STRING("c"), TINYDIR_STRING("cc"), TINYDIR_STRING("cpp"), TINYDIR_STRING("cxx") };
-bool isSourceFile(tinydir_file *file)
-{
- if(!file->is_reg)
- return false;
-
- for(const _tinydir_char_t *sourceFileExtension : sourceFileExtensions)
- {
- if(_tinydir_strcmp(sourceFileExtension, file->extension) == 0)
- return true;
- }
-
- return false;
-}
-
bool isPathSubPathOf(const FileString &path, const FileString &subPathOf)
{
return _tinydir_strncmp(path.c_str(), subPathOf.c_str(), subPathOf.size()) == 0;