[Midnightbsd-cvs] src [11742] trunk/contrib/cflow/cgraph/clexer.c: remove unused function to stop warnings

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Jul 9 19:35:06 EDT 2018


Revision: 11742
          http://svnweb.midnightbsd.org/src/?rev=11742
Author:   laffer1
Date:     2018-07-09 19:35:06 -0400 (Mon, 09 Jul 2018)
Log Message:
-----------
remove unused function to stop warnings

Modified Paths:
--------------
    trunk/contrib/cflow/cgraph/clexer.c

Modified: trunk/contrib/cflow/cgraph/clexer.c
===================================================================
--- trunk/contrib/cflow/cgraph/clexer.c	2018-07-09 23:29:52 UTC (rev 11741)
+++ trunk/contrib/cflow/cgraph/clexer.c	2018-07-09 23:35:06 UTC (rev 11742)
@@ -45,7 +45,6 @@
 /* Forward declarations. */
 static int skip_whitespaces (FILE *fp);
 static inline int skip_strings (FILE *fp, int delim);
-static inline int skip_brackets (FILE *fp, int delim);
 static char* get_name (FILE *fp, int ch);
 static int is_reserved (char *name);
 static bool_t is_c_keyword (char *name);
@@ -162,29 +161,6 @@
 }
 
 /**
- * Skips characters until a matching closing bracket for the passed opening
- * bracket is reached.
- *
- * \param fp The file to read and skip the characters from.
- * \param delim The opening bracket to use as delimiter. Only '(' and
- *        '[' are recognized.
- * \return The next character after the delimiter or EOF.
- */
-static inline int
-skip_brackets (FILE *fp, int delim)
-{
-    int ch = '\0';
-    int close = (delim == '(') ? ')' : ']';
-     
-    while (ch != close && ch != EOF)
-    {
-        ch = fgetc (fp);
-        offset++;
-    }
-    return ch;
-}
-
-/**
  * Reads and returns a name. The return value has to be freed by the
  * caller.
  * 



More information about the Midnightbsd-cvs mailing list