[Crosstoolchain-logs] [device-tree-compiler] 186/198: Remove unused srcpos_dump() function
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:07:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.
commit 44a59713cf0518382cb8fe705f59fd974a1ac030
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Wed Jul 13 00:44:53 2016 +1000
Remove unused srcpos_dump() function
srcpos_dump() has no current users, and I have no plans to use it. So
remove it.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
srcpos.c | 15 ---------------
srcpos.h | 1 -
2 files changed, 16 deletions(-)
diff --git a/srcpos.c b/srcpos.c
index af7fb3c..aa3aad0 100644
--- a/srcpos.c
+++ b/srcpos.c
@@ -246,21 +246,6 @@ srcpos_copy(struct srcpos *pos)
return pos_new;
}
-
-
-void
-srcpos_dump(struct srcpos *pos)
-{
- printf("file : \"%s\"\n",
- pos->file ? (char *) pos->file : "<no file>");
- printf("first_line : %d\n", pos->first_line);
- printf("first_column: %d\n", pos->first_column);
- printf("last_line : %d\n", pos->last_line);
- printf("last_column : %d\n", pos->last_column);
- printf("file : %s\n", pos->file->name);
-}
-
-
char *
srcpos_string(struct srcpos *pos)
{
diff --git a/srcpos.h b/srcpos.h
index f81827b..2cdfcd8 100644
--- a/srcpos.h
+++ b/srcpos.h
@@ -105,7 +105,6 @@ extern struct srcpos srcpos_empty;
extern void srcpos_update(struct srcpos *pos, const char *text, int len);
extern struct srcpos *srcpos_copy(struct srcpos *pos);
extern char *srcpos_string(struct srcpos *pos);
-extern void srcpos_dump(struct srcpos *pos);
extern void srcpos_verror(struct srcpos *pos, const char *prefix,
const char *fmt, va_list va)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list