From 018f4ee97879d0f8b6a30a2b705a58ed033f422f Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 21 Jul 2014 18:05:25 +0000 Subject: 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 --- src/Fl_Native_File_Chooser_WIN32.cxx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx index 3b7f19a41..56779cd5a 100644 --- a/src/Fl_Native_File_Chooser_WIN32.cxx +++ b/src/Fl_Native_File_Chooser_WIN32.cxx @@ -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 -- cgit v1.2.3