Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
2a086d20
Commit
2a086d20
authored
Jun 26, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Glob: remove GLib implementation
I suppose there is no non-WIN32 operating system that doesn't have fnmatch(). So let's remove the GLib implementation.
parent
d5cfa6d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
Glob.hxx
src/fs/Glob.hxx
+0
-19
No files found.
src/fs/Glob.hxx
View file @
2a086d20
...
...
@@ -30,9 +30,6 @@
#define HAVE_CLASS_GLOB
#include <string>
#include <shlwapi.h>
#elif defined(HAVE_GLIB)
#define HAVE_CLASS_GLOB
#include <glib.h>
#endif
#ifdef HAVE_CLASS_GLOB
...
...
@@ -45,8 +42,6 @@
class
Glob
{
#if defined(HAVE_FNMATCH) || defined(WIN32)
std
::
string
pattern
;
#else
GPatternSpec
*
pattern
;
#endif
public
:
...
...
@@ -56,18 +51,6 @@ public:
Glob
(
Glob
&&
other
)
:
pattern
(
std
::
move
(
other
.
pattern
))
{}
#else
explicit
Glob
(
const
char
*
_pattern
)
:
pattern
(
g_pattern_spec_new
(
_pattern
))
{}
Glob
(
Glob
&&
other
)
:
pattern
(
other
.
pattern
)
{
other
.
pattern
=
nullptr
;
}
~
Glob
()
{
g_pattern_spec_free
(
pattern
);
}
#endif
gcc_pure
...
...
@@ -76,8 +59,6 @@ public:
return
fnmatch
(
pattern
.
c_str
(),
name_fs
,
0
)
==
0
;
#elif defined(WIN32)
return
PathMatchSpecA
(
name_fs
,
pattern
.
c_str
());
#else
return
g_pattern_match_string
(
pattern
,
name_fs
);
#endif
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment