Bug 161453 - remove XP_MAC deadcode in typelib/xpidl, r=timeless, sr=mrbkap, a=dsicore

This commit is contained in:
philringnalda@gmail.com 2007-11-12 19:25:55 -08:00
parent 9d8578dd45
commit a85d73705b
3 changed files with 0 additions and 24 deletions

View File

@ -49,11 +49,7 @@
#include <glib.h>
#include <string.h> /* After glib.h to avoid warnings about shadowing 'index'. */
#ifndef XP_MAC
#include <libIDL/IDL.h>
#else
#include <IDL.h>
#endif
#include <xpt_struct.h>

View File

@ -58,18 +58,6 @@ xpidl_malloc(size_t nbytes)
return p;
}
#ifdef XP_MAC
static char *strdup(const char *c)
{
char *newStr = malloc(strlen(c) + 1);
if (newStr)
{
strcpy(newStr, c);
}
return newStr;
}
#endif
char *
xpidl_strdup(const char *s)
{

View File

@ -86,14 +86,6 @@ main(int argc, char **argv)
td_void.prefix.flags = TD_VOID;
#ifdef XP_MAC
if (argc == 0) {
static char* args[] = { "SimpleTypeLib", "simple.xpt", NULL };
argc = 2;
argv = args;
}
#endif
if (argc != 2) {
fprintf(stderr, "Usage: %s <filename.xpt>\n"
" Creates a simple typelib file.\n", argv[0]);