Remove unused function fn_is_special
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2015 06:53:09 +0000 (08:53 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2015 19:58:12 +0000 (21:58 +0200)
src/data/file-name.c
src/data/file-name.h

index 3e9fa6914a72d3a5dcc8e011bbcde94d274a782e..ac3378e300941f1603886ee7c5edf5dbbcead30c 100644 (file)
@@ -111,23 +111,6 @@ fn_is_absolute (const char *name)
   return IS_ABSOLUTE_FILE_NAME (name);
 }
 
-/* Returns true if FILE_NAME is a virtual file that doesn't
-   really exist on disk, false if it's a real file name. */
-bool
-fn_is_special (const char *file_name)
-{
-  if (!strcmp (file_name, "-") || !strcmp (file_name, "stdin")
-      || !strcmp (file_name, "stdout") || !strcmp (file_name, "stderr")
-#ifdef HAVE_POPEN
-      || file_name[0] == '|'
-      || (*file_name && file_name[strlen (file_name) - 1] == '|')
-#endif
-      )
-    return true;
-
-  return false;
-}
-
 /* Returns true if file with name NAME exists, and that file is not a
    directory */
 bool
index d37b2547e1511d8851534deca17bb69aad2a89db..4ce24e8f24fd45295f1d7f82b27f7fc907c14d51 100644 (file)
@@ -28,7 +28,6 @@ char *fn_dir_name (const char *fn);
 char *fn_extension (const char *fn);
 
 bool fn_is_absolute (const char *fn);
-bool fn_is_special (const char *fn);
 bool fn_exists (const char *fn);
 
 const char *fn_getenv (const char *variable);