summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-05-30 16:59:48 +0100
committerBen Brewer <ben.brewer@codethink.co.uk>2014-06-04 12:44:01 +0100
commitcbe6a4f51bc27c4e8a81f89876c3ae469c8bf67e (patch)
tree5f609d867452e52887f434e1f7f3583c1a63aaa6
parent4f69a8fadbd90eb6ff979b6dad57f6de631e3734 (diff)
downloadtbdiff-cbe6a4f51bc27c4e8a81f89876c3ae469c8bf67e.tar.gz
Remove tbd_stat_fopen since it's no longer used
Since we now use POSIX file functions only in tbdiff-create, we no longer need tbd_stat_fopen, so it's been removed.
-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__ */