diff options
author | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-05-30 16:59:48 +0100 |
---|---|---|
committer | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-06-02 15:53:43 +0100 |
commit | d20bc61e23a0fe16649c3ff5be9d72ff40c71bfb (patch) | |
tree | 29cc46dc7fe37beb2709be2bae9544d2d9d221f1 | |
parent | 17155e951f1995e768d43eb363b64062a2521202 (diff) | |
download | tbdiff-d20bc61e23a0fe16649c3ff5be9d72ff40c71bfb.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.c | 12 | ||||
-rw-r--r-- | tbdiff/tbdiff-stat.h | 1 |
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__ */ |