aboutsummaryrefslogtreecommitdiff
path: root/src/index/disktxpos.h
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-03-21 13:54:51 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-03-21 13:54:11 +0100
commitfa67b8181c3ecf94395ecc50fd8acd436f1f8c3a (patch)
treef503e5f15899606108accc0f63e6a99f24823c04 /src/index/disktxpos.h
parent40e1c4d4024b8ad35f2511b2e10bf80c5531dfde (diff)
Refactor: Remove unused FlatFilePos::SetNull
Diffstat (limited to 'src/index/disktxpos.h')
-rw-r--r--src/index/disktxpos.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/index/disktxpos.h b/src/index/disktxpos.h
index 3166053226..7718755b78 100644
--- a/src/index/disktxpos.h
+++ b/src/index/disktxpos.h
@@ -10,7 +10,7 @@
struct CDiskTxPos : public FlatFilePos
{
- unsigned int nTxOffset; // after header
+ unsigned int nTxOffset{0}; // after header
SERIALIZE_METHODS(CDiskTxPos, obj)
{
@@ -21,15 +21,7 @@ struct CDiskTxPos : public FlatFilePos
CDiskTxPos(const FlatFilePos &blockIn, unsigned int nTxOffsetIn) : FlatFilePos(blockIn.nFile, blockIn.nPos), nTxOffset(nTxOffsetIn) {
}
- CDiskTxPos() {
- SetNull();
- }
-
- void SetNull() {
- FlatFilePos::SetNull();
- nTxOffset = 0;
- }
+ CDiskTxPos() {}
};
-
#endif // BITCOIN_INDEX_DISKTXPOS_H