]> source.dussan.org Git - tigervnc.git/commitdiff
Remove dead code
authorPierre Ossman <ossman@cendio.se>
Wed, 11 May 2022 07:16:42 +0000 (09:16 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 11 May 2022 07:16:42 +0000 (09:16 +0200)
This code is never used on Windows, so remove it.

vncviewer/vncviewer.cxx

index bbc7e3720d4fad107a0144114647aa74e5538c8c..028935b7f550d68ee9c540e784bed6369addb416 100644 (file)
@@ -370,14 +370,8 @@ static void init_fltk()
       sprintf(icon_path, "%s/icons/hicolor/%dx%d/apps/tigervnc.png",
               CMAKE_INSTALL_FULL_DATADIR, icon_sizes[i], icon_sizes[i]);
 
-#ifndef WIN32
       struct stat st;
       if (stat(icon_path, &st) != 0)
-#else
-      struct _stat st;
-      if (_stat(icon_path, &st) != 0)
-          return(false);
-#endif
         exists = false;
       else
         exists = true;