diff --git a/src/ca65/lineinfo.c b/src/ca65/lineinfo.c index 355fdfc75..d1faa21a2 100644 --- a/src/ca65/lineinfo.c +++ b/src/ca65/lineinfo.c @@ -121,7 +121,7 @@ void InitLineInfo (void) AllocatedSlots = 8; CurLineInfo = xmalloc (AllocatedSlots * sizeof (LineInfoSlot)); - /* Initalize the predefined slots. Be sure to ccreate a new LineInfo for + /* Initalize the predefined slots. Be sure to create a new LineInfo for * the default source. This is necessary to allow error message to be * generated without any input file open. */ @@ -226,19 +226,6 @@ void GetFullLineInfo (Collection* LineInfos, unsigned IncUsage) -LineInfo* UseLineInfo (LineInfo* LI) -/* Increase the reference count of the given line info and return it. The - * function will gracefully accept NULL pointers and do nothing in this case. - */ -{ - if (LI) { - ++LI->Usage; - } - return LI; -} - - - LineInfo* ReleaseLineInfo (LineInfo* LI) /* Decrease the reference count of the given line info and return it. The * function will gracefully accept NULL pointers and do nothing in this case. diff --git a/src/ca65/lineinfo.h b/src/ca65/lineinfo.h index 801a86994..14ca35f81 100644 --- a/src/ca65/lineinfo.h +++ b/src/ca65/lineinfo.h @@ -103,11 +103,6 @@ void GetFullLineInfo (Collection* LineInfos, unsigned IncUsage); * counter by IncUsage for all line infos returned. */ -LineInfo* UseLineInfo (LineInfo* LI); -/* Increase the reference count of the given line info and return it. The - * function will gracefully accept NULL pointers and do nothing in this case. - */ - LineInfo* ReleaseLineInfo (LineInfo* LI); /* Decrease the reference count of the given line info and return it. The * function will gracefully accept NULL pointers and do nothing in this case. @@ -151,4 +146,4 @@ void WriteLineInfos (void); - +