From f7e36370f36ca806076cdcf0cd3ed0c35fd38c42 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Mon, 15 Sep 2014 09:56:10 -0400 Subject: [PATCH] Eliminate extra assignment --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0816e36633f..7242c3ab5c2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2795,8 +2795,7 @@ FILE* OpenUndoFile(const CDiskBlockPos &pos, bool fReadOnly) { boost::filesystem::path GetBlockPosFilename(const CDiskBlockPos &pos, const char *prefix) { - boost::filesystem::path path = GetDataDir() / "blocks" / strprintf("%s%05u.dat", prefix, pos.nFile); - return path; + return GetDataDir() / "blocks" / strprintf("%s%05u.dat", prefix, pos.nFile); } CBlockIndex * InsertBlockIndex(uint256 hash)