diff options
author | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2016-11-17 22:58:16 +0100 |
---|---|---|
committer | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2016-11-17 22:58:16 +0100 |
commit | ed76659c054ce781ae6050e563de9ad40b3d25cd (patch) | |
tree | 5e13e5b83248248c6462b1d0514971f7aa8e6dfd /sys/src/libventi | |
parent | 28f4567ba615c4036c079021392825757ef2a008 (diff) |
/sys/src/lib*: clean up
Diffstat (limited to 'sys/src/libventi')
-rw-r--r-- | sys/src/libventi/file.c | 10 |
1 files changed, 0 insertions, 10 deletions
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--){ |