[mkbundle] Remove broken win32 code.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Thu, 3 Jan 2013 21:58:20 +0000 (22:58 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Thu, 3 Jan 2013 23:05:26 +0000 (00:05 +0100)
mcs/tools/mkbundle/template_main.c

index 9a7e241d9c919413132f68f35b250d64aa0da98b..bd55f99075150401c915a44216323efc93dbb288 100644 (file)
@@ -51,21 +51,9 @@ int main (int argc, char* argv[])
        char **newargs;
        int i, k = 0;
 
-#ifdef _WIN32
-       /* CommandLineToArgvW() might return a different argc than the
-        * one passed to main(), so let it overwrite that, as we won't
-        * use argv[] on Windows anyway.
-        */
-       wchar_t **wargv = CommandLineToArgvW (GetCommandLineW (), &argc);
-#endif
-
        newargs = (char **) malloc (sizeof (char *) * (argc + 2) + count_mono_options_args ());
 
-#ifdef _WIN32
-       newargs [k++] = g_utf16_to_utf8 (wargv [0], -1, NULL, NULL, NULL);
-#else
        newargs [k++] = argv [0];
-#endif
 
        if (mono_options != NULL) {
                i = 0;
@@ -76,15 +64,8 @@ int main (int argc, char* argv[])
        newargs [k++] = image_name;
 
        for (i = 1; i < argc; i++) {
-#ifdef _WIN32
-               newargs [k++] = g_utf16_to_utf8 (wargv [i], -1, NULL, NULL, NULL);
-#else
                newargs [k++] = argv [i];
-#endif
        }
-#ifdef _WIN32
-       LocalFree (wargv);
-#endif
        newargs [k] = NULL;
        
        if (config_dir != NULL && getenv ("MONO_CFG_DIR") == NULL)