srcpos: Remove srcpos_empty
Nothing was actually using it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
parent
a3143fafbf
commit
5062516fb8
12
srcpos.c
12
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;
|
||||
|
|
7
srcpos.h
7
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);
|
||||
|
|
Loading…
Reference in New Issue