mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 161453 - remove XP_MAC deadcode in typelib/xpidl, r=timeless, sr=mrbkap, a=dsicore
This commit is contained in:
parent
9d8578dd45
commit
a85d73705b
@ -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>
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user