Skip to content

Commit

Permalink
Remove unused srcpos_dump() function
Browse files Browse the repository at this point in the history
srcpos_dump() has no current users, and I have no plans to use it.  So
remove it.

Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
dgibson committed Jul 12, 2016
1 parent cb9241a commit 44a5971
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions srcpos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion srcpos.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44a5971

Please sign in to comment.