shithub: gefs

Download patch

ref: 88c8be97d8877f0eb8d884a34f8575f1f1948bfa
parent: 7b5664be2c9015c07facb5cd49685efc16887ac1
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 2 01:09:12 EDT 2023

dump: remove dead code

--- a/dump.c
+++ b/dump.c
@@ -10,31 +10,6 @@
 char	spc[128];
 
 static int
-walk1(Tree *t, vlong up, char *name, Qid *qid, vlong *len)
-{
-	char *p, kbuf[Keymax], rbuf[Kvmax];
-	int err;
-	Xdir d;
-	Kvp kv;
-	Key k;
-
-	err = 0;
-	if((p = packdkey(kbuf, sizeof(kbuf), up, name)) == nil)
-		return -1;
-	k.k = kbuf;
-	k.nk = p - kbuf;
-	if(err)
-		return -1;
-	if(btlookup(t, &k, &kv, rbuf, sizeof(rbuf)) != nil)
-		return -1;
-	if(kv2dir(&kv, &d) == -1)
-		return -1;
-	*qid = d.qid;
-	*len = d.length;
-	return 0;
-}
-
-static int
 showkey(Fmt *fmt, Key *k)
 {
 	int n;