changeset 560:0bbaf23acb77

Remove a little more unused code, removes two warnings.
author Rob Landley <rob@landley.net>
date Sat, 08 Mar 2008 12:07:14 -0600
parents ba7d2de6912b
children 1bca65b6262f
files tcc.c
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/tcc.c	Sat Mar 08 12:06:21 2008 -0600
+++ b/tcc.c	Sat Mar 08 12:07:14 2008 -0600
@@ -109,7 +109,6 @@
 static int tcc_ext = 1;
 
 /* max number of callers shown if error */
-static int num_callers = 6;
 static char **rt_bound_error_msg;
 
 /* XXX: get rid of this ASAP */
@@ -193,13 +192,6 @@
     return ptr1;
 }
 
-static char *xstrdup(char *str)
-{
-    char *ptr = xmalloc(strlen(str) + 1);
-    strcpy(ptr, str);
-    return ptr;
-}
-
 void dynarray_add(void ***ptab, int *nb_ptr, void *data)
 {
     int nb, nb_alloc;