freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] possible unused function in TT interpreter


From: Graham Asher
Subject: [Devel] possible unused function in TT interpreter
Date: Tue, 7 Jan 2003 11:43:31 -0000

Can someone explain why the macro

#define CUR_Func_freeProj( x, y ) \
          CUR.func_freeProj( EXEC_ARG_ x, y )

and the function it calls, in truetype\ttinterp.c, don't appear to be used
anywhere in FreeType? The string func_freeProj occurs only in these places:

Searching for 'freeproj'...
H:\SRC\freetype2\src\truetype\ttinterp.c(168):#define CUR_Func_freeProj( x,
y ) \
H:\SRC\freetype2\src\truetype\ttinterp.c(169):          CUR.func_freeProj(
EXEC_ARG_ x, y )
H:\SRC\freetype2\src\truetype\ttinterp.c(2264):      CUR.func_freeProj =
(TT_Project_Func)Project_x;
H:\SRC\freetype2\src\truetype\ttinterp.c(2271):        CUR.func_freeProj =
(TT_Project_Func)Project_y;
H:\SRC\freetype2\src\truetype\ttinterp.c(2276):        CUR.func_freeProj =
(TT_Project_Func)Free_Project;
H:\SRC\freetype2\src\truetype\ttinterp.h(211):
func_freeProj;  /* current freedom proj. func  */
6 occurrence(s) have been found.

None of these are calls of func_freeProj or assignments of it to some other
function pointer through which it can be called.

If it's unneeded it should be deleted.

Graham Asher




reply via email to

[Prev in Thread] Current Thread [Next in Thread]