@@ -2185,40 +2185,6 @@ int mingw_raise(int sig)
2185
2185
}
2186
2186
2187
2187
2188
- static const char * make_backslash_path (const char * path )
2189
- {
2190
- static char buf [PATH_MAX + 1 ];
2191
- char * c ;
2192
-
2193
- if (strlcpy (buf , path , PATH_MAX ) >= PATH_MAX )
2194
- die ("Too long path: %.*s" , 60 , path );
2195
-
2196
- for (c = buf ; * c ; c ++ ) {
2197
- if (* c == '/' )
2198
- * c = '\\' ;
2199
- }
2200
- return buf ;
2201
- }
2202
-
2203
- void mingw_open_html (const char * unixpath )
2204
- {
2205
- const char * htmlpath = make_backslash_path (unixpath );
2206
- int r ;
2207
- DECLARE_PROC_ADDR (shell32 .dll , HINSTANCE , ShellExecuteA ,
2208
- HWND , LPCSTR , LPCSTR , LPCSTR , LPCSTR , INT );
2209
-
2210
- if (!INIT_PROC_ADDR (ShellExecuteA ))
2211
- die ("cannot load shell32.dll" );
2212
-
2213
- printf ("Launching default browser to display HTML ...\n" );
2214
- r = HCAST (int , ShellExecuteA (NULL , "open" , htmlpath ,
2215
- NULL , "\\" , SW_SHOWNORMAL ));
2216
- /* see the MSDN documentation referring to the result codes here */
2217
- if (r <= 32 ) {
2218
- die ("failed to launch browser for %.*s" , MAX_PATH , unixpath );
2219
- }
2220
- }
2221
-
2222
2188
int link (const char * oldpath , const char * newpath )
2223
2189
{
2224
2190
DECLARE_PROC_ADDR (kernel32 .dll , BOOL , CreateHardLinkW ,
0 commit comments