diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-03-21 13:54:51 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-03-21 13:54:11 +0100 |
commit | fa67b8181c3ecf94395ecc50fd8acd436f1f8c3a (patch) | |
tree | f503e5f15899606108accc0f63e6a99f24823c04 /src/flatfile.h | |
parent | 40e1c4d4024b8ad35f2511b2e10bf80c5531dfde (diff) |
Refactor: Remove unused FlatFilePos::SetNull
Diffstat (limited to 'src/flatfile.h')
-rw-r--r-- | src/flatfile.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/flatfile.h b/src/flatfile.h index 04f6373a24..e4be9a9cb1 100644 --- a/src/flatfile.h +++ b/src/flatfile.h @@ -13,12 +13,12 @@ struct FlatFilePos { - int nFile; - unsigned int nPos; + int nFile{-1}; + unsigned int nPos{0}; SERIALIZE_METHODS(FlatFilePos, obj) { READWRITE(VARINT_MODE(obj.nFile, VarIntMode::NONNEGATIVE_SIGNED), VARINT(obj.nPos)); } - FlatFilePos() : nFile(-1), nPos(0) {} + FlatFilePos() {} FlatFilePos(int nFileIn, unsigned int nPosIn) : nFile(nFileIn), @@ -33,7 +33,6 @@ struct FlatFilePos return !(a == b); } - void SetNull() { nFile = -1; nPos = 0; } bool IsNull() const { return (nFile == -1); } std::string ToString() const; |