Skip to content

Commit 885daf4

Browse files
committed
remove no longer used exported functions
1 parent d655351 commit 885daf4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

core/rawdb/schema.go

-16
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,11 @@ func headerKey(number uint64, hash common.Hash) []byte {
167167
return append(append(headerPrefix, encodeBlockNumber(number)...), hash.Bytes()...)
168168
}
169169

170-
func HeaderKey(number uint64, hash common.Hash) []byte {
171-
return headerKey(number, hash)
172-
}
173-
174170
// headerTDKey = headerPrefix + num (uint64 big endian) + hash + headerTDSuffix
175171
func headerTDKey(number uint64, hash common.Hash) []byte {
176172
return append(headerKey(number, hash), headerTDSuffix...)
177173
}
178174

179-
func HeaderTDKey(number uint64, hash common.Hash) []byte {
180-
return headerTDKey(number, hash)
181-
}
182-
183175
// headerHashKey = headerPrefix + num (uint64 big endian) + headerHashSuffix
184176
func headerHashKey(number uint64) []byte {
185177
return append(append(headerPrefix, encodeBlockNumber(number)...), headerHashSuffix...)
@@ -195,19 +187,11 @@ func blockBodyKey(number uint64, hash common.Hash) []byte {
195187
return append(append(blockBodyPrefix, encodeBlockNumber(number)...), hash.Bytes()...)
196188
}
197189

198-
func BlockBodyKey(number uint64, hash common.Hash) []byte {
199-
return blockBodyKey(number, hash)
200-
}
201-
202190
// blockReceiptsKey = blockReceiptsPrefix + num (uint64 big endian) + hash
203191
func blockReceiptsKey(number uint64, hash common.Hash) []byte {
204192
return append(append(blockReceiptsPrefix, encodeBlockNumber(number)...), hash.Bytes()...)
205193
}
206194

207-
func BlockReceiptsKey(number uint64, hash common.Hash) []byte {
208-
return blockReceiptsKey(number, hash)
209-
}
210-
211195
// txLookupKey = txLookupPrefix + hash
212196
func txLookupKey(hash common.Hash) []byte {
213197
return append(txLookupPrefix, hash.Bytes()...)

0 commit comments

Comments
 (0)