From: uz Date: Thu, 11 Aug 2011 21:23:37 +0000 (+0000) Subject: Removed an unused function. X-Git-Tag: V2.13.3~309 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54ffc25a5310ffeaaff0068138dd2f1207da4e6c;p=cc65 Removed an unused function. git-svn-id: svn://svn.cc65.org/cc65/trunk@5153 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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); - +