util: Remove unused file_exist() 27/190527/1
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 3 Oct 2018 09:27:57 +0000 (11:27 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 3 Oct 2018 09:27:57 +0000 (11:27 +0200)
Change-Id: I1e20fc6cd55c9685db304a9aa40b58af56df0c00

src/shared/util.c

index b47fd02..8273ca2 100644 (file)
@@ -146,17 +146,6 @@ int system_command_with_timeout(int timeout_seconds, char *command)
        }
 }
 
-int file_exist(const char *file)
-{
-       FILE *fp;
-
-       fp = fopen(file, "r");
-       if (fp == NULL)
-               return -1;
-       fclose(fp);
-       return 1;
-}
-
 int write_fd(int fd, const void *buf, int len)
 {
        int count;