Removed unused code strcnt() to prevent warnings w/mingw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
7eb0c224df
commit
018f4ee978
@ -664,19 +664,6 @@ void Fl_Native_File_Chooser::add_filter(const char *name_in, // name of filter (
|
||||
//DEBUG printf("DEBUG: ADD FILTER name=<%s> winfilter=<%s>\n", name, winfilter);
|
||||
}
|
||||
|
||||
// COUNT OCCURRENCES OF ANY CHARS FROM 'find' IN 's'.
|
||||
static int strcnt(const char *s, const char *find) {
|
||||
int cnt = 0;
|
||||
const char *f;
|
||||
while ( *s ) {
|
||||
for (f=find; *f; f++) {
|
||||
if (*s == *f) { ++cnt; break; }
|
||||
}
|
||||
++s;
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
// RETURN HOW MANY DIFFERENT FILTERS WERE SPECIFIED
|
||||
// In: "foo.[CH]" or "foo.{C,H}"
|
||||
// Out: 2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user