summaryrefslogtreecommitdiffstats
path: root/qarshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'qarshd.c')
-rw-r--r--qarshd.c13
1 files changed, 0 insertions, 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;
}