summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tbdiff/tbdiff-stat.c12
-rw-r--r--tbdiff/tbdiff-stat.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/tbdiff/tbdiff-stat.c b/tbdiff/tbdiff-stat.c
index b0876ec..aabf237 100644
--- a/tbdiff/tbdiff-stat.c
+++ b/tbdiff/tbdiff-stat.c
@@ -258,15 +258,3 @@ tbd_stat_open(struct tbd_stat *file, int flags)
free(path);
return fd;
}
-
-FILE*
-tbd_stat_fopen(struct tbd_stat *file,
- const char *mode)
-{
- char *path = tbd_stat_path(file);
- if(path == NULL)
- return NULL;
- FILE *fp = fopen(path, mode);
- free(path);
- return fp;
-}
diff --git a/tbdiff/tbdiff-stat.h b/tbdiff/tbdiff-stat.h
index 6f4c93e..b8dd9b6 100644
--- a/tbdiff/tbdiff-stat.h
+++ b/tbdiff/tbdiff-stat.h
@@ -57,6 +57,5 @@ struct tbd_stat* tbd_stat_entry_find(struct tbd_stat *file, const char *name);
char* tbd_statubpath(struct tbd_stat *file, const char *entry);
char* tbd_stat_path(struct tbd_stat *file);
int tbd_stat_open(struct tbd_stat *file, int flags);
-FILE* tbd_stat_fopen(struct tbd_stat *file, const char *mode);
#endif /* !__TBDIFF_STAT_H__ */