From 3a99470c355c1d2d479c4a58ac83cd31f2d59c5f Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Fri, 27 Sep 2013 11:46:47 -0400 Subject: Remove stat cache which isn't used anymore --- qarshd.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/qarshd.c b/qarshd.c index ca812cc..3db4e96 100644 --- a/qarshd.c +++ b/qarshd.c @@ -62,10 +62,6 @@ int sendfd = -1; off_t recvsize = 0; off_t received = 0; -/* A mini cache for rstat so we can check it in pushfile */ -char *saved_path = NULL; -struct stat saved_stat; - void lprintf(int priority, const char *format, ...) { @@ -228,14 +224,6 @@ prepare_sendfile(struct qa_packet *qp) return NULL; } -void -save_stat(const char *path, const struct stat *sb) -{ - if (saved_path) free(saved_path); - saved_path = strdup(path); - memcpy(&saved_stat, sb, sizeof saved_stat); -} - struct qa_packet * rstat(const char *path) { @@ -247,7 +235,6 @@ rstat(const char *path) } else { rp = make_qp_rstat(path, &sb); } - save_stat(path, &sb); return rp; } -- cgit