From 286bb40b76f35ffee1e6789895782af203e0dae3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 6 Dec 2008 16:14:10 -0800 Subject: unvac: add -d flag (David Swasey) --- src/cmd/vac/vac.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/cmd/vac/vac.c') diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index 99651981..d6c17b4b 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -439,24 +439,6 @@ enum { }; #endif -/* - * Does block b of f have the same SHA1 hash as the n bytes at buf? - */ -static int -sha1matches(VacFile *f, ulong b, uchar *buf, int n) -{ - uchar fscore[VtScoreSize]; - uchar bufscore[VtScoreSize]; - - if(vacfileblockscore(f, b, fscore) < 0) - return 0; - n = vtzerotruncate(VtDataType, buf, n); - sha1(buf, n, bufscore, nil); - if(memcmp(bufscore, fscore, VtScoreSize) == 0) - return 1; - return 0; -} - /* * Archive the file named name, which has stat info d, * into the vac directory fp (p = parent). -- cgit v1.2.3