remove forked message accessor

The template `message` extracts fork specific data from a forked block.
However, its current implementation does not compile due to each fork
returning a different type, i.e., the generated `case` code attempts to
return different types from each branch. As the template is unused, it
is safely removed for now.
This commit is contained in:
Etan Kissling 2021-09-14 15:22:45 +02:00 committed by zah
parent a71de3feda
commit 7ccaeed4a8
1 changed files with 0 additions and 3 deletions

View File

@ -322,9 +322,6 @@ template root*(x: ForkedSignedBeaconBlock | ForkedTrustedSignedBeaconBlock): Eth
template slot*(x: ForkedSignedBeaconBlock | ForkedTrustedSignedBeaconBlock): Slot =
getForkedBlockField(x, slot)
template message*(x: ForkedSignedBeaconBlock | ForkedTrustedSignedBeaconBlock): auto =
withBlck(x): blck.message
template shortLog*(x: ForkedBeaconBlock): auto =
withBlck(x): shortLog(blck)