Skip to content

Commit

Permalink
Removed unused code strcnt() to prevent warnings w/mingw
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Jul 21, 2014
1 parent 7eb0c22 commit 018f4ee
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Fl_Native_File_Chooser_WIN32.cxx
Expand Up @@ -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
Expand Down

0 comments on commit 018f4ee

Please sign in to comment.