mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/shed: remove unused field from IndexItem
This commit is contained in:
parent
1e8f0ded93
commit
7dfada1d97
1 changed files with 0 additions and 6 deletions
|
|
@ -37,9 +37,6 @@ type IndexItem struct {
|
||||||
Data []byte
|
Data []byte
|
||||||
AccessTimestamp int64
|
AccessTimestamp int64
|
||||||
StoreTimestamp 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
|
// 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 {
|
if i.StoreTimestamp == 0 {
|
||||||
i.StoreTimestamp = i2.StoreTimestamp
|
i.StoreTimestamp = i2.StoreTimestamp
|
||||||
}
|
}
|
||||||
if i.UseMockStore == nil {
|
|
||||||
i.UseMockStore = i2.UseMockStore
|
|
||||||
}
|
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue