From 7dfada1d97086a0b758cfc4b50917af7c3c61773 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 23 Nov 2018 10:26:02 +0100 Subject: [PATCH] swarm/shed: remove unused field from IndexItem --- swarm/shed/index.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/swarm/shed/index.go b/swarm/shed/index.go index 7b8c2ef728..ac2bbe8431 100644 --- a/swarm/shed/index.go +++ b/swarm/shed/index.go @@ -37,9 +37,6 @@ type IndexItem struct { Data []byte AccessTimestamp int64 StoreTimestamp int64 - // UseMockStore is a pointer to identify - // an unset state of the field in Join function. - UseMockStore *bool } // Join is a helper method to construct a new @@ -58,9 +55,6 @@ func (i IndexItem) Join(i2 IndexItem) (new IndexItem) { if i.StoreTimestamp == 0 { i.StoreTimestamp = i2.StoreTimestamp } - if i.UseMockStore == nil { - i.UseMockStore = i2.UseMockStore - } return i }