---
libgeda/include/prototype.h | 1 -
libgeda/src/u_basic.c | 34 ----------------------------------
2 files changed, 0 insertions(+), 35 deletions(-)
diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 7713344..f1c08d3 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -507,4 +507,3 @@ void s_undo_free_all(TOPLEVEL *toplevel, PAGE *p_current);
/* u_basic.c */
char *u_basic_breakup_string(char *string, char delimiter, int count);
-int u_basic_count_char(const char *string, char character);
diff --git a/libgeda/src/u_basic.c b/libgeda/src/u_basic.c
index fb67399..bfb9948 100644
--- a/libgeda/src/u_basic.c
+++ b/libgeda/src/u_basic.c
@@ -98,37 +98,3 @@ char *u_basic_breakup_string(char *string, char delimiter,
int count)
return_value[j] = '\0';
return(return_value);
}
-
-/*! \todo Finish function documentation!!!
- * \brief
- * \par Function Description
- *
- */
-/*
- * This fcn counts the number of occurances of the character
- * "character" in the string "string".
- * 1.23.2005 -- SDB
- */
-int u_basic_count_char(const char *string, char character)
-{
- int count = 0;
- int i=0;
-
-#ifdef DEBUG
- printf("In u_basic_count_char, looking for char \"%c\" in string \"%s\".\n",
- character, string);
-#endif
-
- while (string[i] != '\0') {
- if (string[i] == character) {
- count++;
- }
- i++;
- }
-#ifdef DEBUG
- printf(". . . . . Found it %d times.\n",
- count);
-#endif
-
-return count;
-}
--
1.5.6
_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev