From ed76659c054ce781ae6050e563de9ad40b3d25cd Mon Sep 17 00:00:00 2001 From: ftrvxmtrx Date: Thu, 17 Nov 2016 22:58:16 +0100 Subject: /sys/src/lib*: clean up --- sys/src/libventi/file.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sys/src/libventi/file.c') diff --git a/sys/src/libventi/file.c b/sys/src/libventi/file.c index b6887dec7..bad30a567 100644 --- a/sys/src/libventi/file.c +++ b/sys/src/libventi/file.c @@ -503,7 +503,6 @@ blockwalk(VtBlock *p, int index, VtCache *c, int mode, VtEntry *e) VtBlock *b; int type; uchar *score; - VtEntry oe; switch(p->type){ case VtDataType: @@ -532,8 +531,6 @@ blockwalk(VtBlock *p, int index, VtCache *c, int mode, VtEntry *e) if(vtglobaltolocal(b->score) != NilBlock) return b; - oe = *e; - /* * Copy on write. */ @@ -600,7 +597,6 @@ static int shrinkdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth) { VtBlock *b, *nb, *ob, *rb; - VtEntry oe; assert(ISLOCKED(r)); assert(depth <= VtPointerDepth); @@ -609,12 +605,6 @@ shrinkdepth(VtFile *r, VtBlock *p, VtEntry *e, int depth) if(rb == nil) return -1; - /* - * Walk down to the new root block. - * We may stop early, but something is better than nothing. - */ - oe = *e; - ob = nil; b = rb; for(; DEPTH(e->type) > depth; e->type--){ -- cgit v1.2.3