@@ -91,8 +91,6 @@ static int num_fpes = 0;
9191static xfont2_fpe_funcs_rec const * * fpe_functions ;
9292static int num_fpe_types = 0 ;
9393
94- static unsigned char * font_path_string ;
95-
9694static int num_slept_fpes = 0 ;
9795static int size_slept_fpes = 0 ;
9896static FontPathElementPtr * slept_fpes = (FontPathElementPtr * ) 0 ;
@@ -1767,44 +1765,6 @@ SetDefaultFontPath(const char *path)
17671765 return err ;
17681766}
17691767
1770- int
1771- GetFontPath (ClientPtr client , int * count , int * length , unsigned char * * result )
1772- {
1773- int access ;
1774- unsigned char * c ;
1775- int len ;
1776- FontPathElementPtr fpe ;
1777-
1778- access = dixCallServerAccessCallback (client , DixGetAttrAccess );
1779- if (access != Success )
1780- return access ;
1781-
1782- len = 0 ;
1783- for (int i = 0 ; i < num_fpes ; i ++ ) {
1784- fpe = font_path_elements [i ];
1785- len += fpe -> name_length + 1 ;
1786- }
1787- c = realloc (font_path_string , len );
1788- if (c == NULL ) {
1789- free (font_path_string );
1790- font_path_string = NULL ;
1791- return BadAlloc ;
1792- }
1793-
1794- font_path_string = c ;
1795- * length = 0 ;
1796- for (int i = 0 ; i < num_fpes ; i ++ ) {
1797- fpe = font_path_elements [i ];
1798- * c = fpe -> name_length ;
1799- * length += * c ++ ;
1800- memcpy (c , fpe -> name , fpe -> name_length );
1801- c += fpe -> name_length ;
1802- }
1803- * count = num_fpes ;
1804- * result = font_path_string ;
1805- return Success ;
1806- }
1807-
18081768void
18091769DeleteClientFontStuff (ClientPtr client )
18101770{
0 commit comments