From 5062516fb8cb52e2a8739695a27abc533da9abcd Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 14 Nov 2018 16:12:43 +1100 Subject: [PATCH] srcpos: Remove srcpos_empty Nothing was actually using it. Signed-off-by: David Gibson --- srcpos.c | 12 ------------ srcpos.h | 7 ------- 2 files changed, 19 deletions(-) diff --git a/srcpos.c b/srcpos.c index cb6ed0e..ea82d88 100644 --- a/srcpos.c +++ b/srcpos.c @@ -197,18 +197,6 @@ void srcfile_add_search_path(const char *dirname) search_path_tail = &node->next; } -/* - * The empty source position. - */ - -struct srcpos srcpos_empty = { - .first_line = 0, - .first_column = 0, - .last_line = 0, - .last_column = 0, - .file = NULL, -}; - void srcpos_update(struct srcpos *pos, const char *text, int len) { int i; diff --git a/srcpos.h b/srcpos.h index 9ded12a..1c74efd 100644 --- a/srcpos.h +++ b/srcpos.h @@ -96,13 +96,6 @@ struct srcpos { } while (0) -/* - * Fictional source position used for IR nodes that are - * created without otherwise knowing a true source position. - * For example,constant definitions from the command line. - */ -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);