[augeas-devel] augeas: master - * src/lexer.l (to_int): unused, remove
David Lutterkort
lutter at fedoraproject.org
Thu Oct 1 00:23:46 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=0a9edaca7b76cdc389859b9b52507f4455484a64
Commit: 0a9edaca7b76cdc389859b9b52507f4455484a64
Parent: c2d4b5e4dd28b36f5f68ef7462fbd854e9a66b42
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Wed Sep 30 15:52:58 2009 -0700
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Sep 30 17:20:38 2009 -0700
* src/lexer.l (to_int): unused, remove
---
src/lexer.l | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/src/lexer.l b/src/lexer.l
index 500240d..bbadf64 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -45,15 +45,6 @@ int augl_get_column (yyscan_t yyscanner);
static void augl_set_column (int column_no , yyscan_t yyscanner);
int augl_init_lexer(struct info *info, yyscan_t * scanner);
-static int to_int(const char *str) {
- int v;
- if (sscanf(str, "%d", &v) != 1) {
- fprintf(stderr, "Weird: failed to convert int\n");
- v = -1;
- }
- return v;
-}
-
static void loc_update(YYLTYPE *yylloc, const char *s, int len) {
for (int i=0; i < len; i++) {
if (s[i] == '\n') {
More information about the augeas-devel
mailing list