From f1bc3999d65a4bee688c7ed6295f1e205afba913 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 16 Jan 2014 16:10:19 +0000 Subject: Two functions strcnt() with distinct prototypes where defined and only one was used, causing a -Wunused-function warning. Also strcnt() is used in WIN32 only, so should not belong to Fl_Native_File_Chooser_common.cxx that contains functions used across platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Native_File_Chooser_common.cxx | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/Fl_Native_File_Chooser_common.cxx') diff --git a/src/Fl_Native_File_Chooser_common.cxx b/src/Fl_Native_File_Chooser_common.cxx index 07e2a1ad6..6636dfecd 100644 --- a/src/Fl_Native_File_Chooser_common.cxx +++ b/src/Fl_Native_File_Chooser_common.cxx @@ -71,25 +71,6 @@ static void chrcat(char *s, char c) { strcat(s, tmp); } -// COUNT OCCURRENCES OF CHAR 'c' IN 'find'. -static int strcnt(const char *s, char c) { - int cnt = 0; - while ( *s ) { if (*s++ == c ) ++cnt; } - return cnt; -} - -// 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; -} // // End of "$Id$". -- cgit v1.2.3