aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-23 13:47:51 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-23 15:37:36 +0000
commitd4f50cb109c45c1f50700cbe2e88ec891eb7d469 (patch)
treed9f69a28fb4500ad985ccc2875836acf88105675 /src/simplewallet/simplewallet.cpp
parenta few minor (but easy) performance tweaks (diff)
downloadmonero-d4f50cb109c45c1f50700cbe2e88ec891eb7d469.tar.xz
remove some unused code
Found by codacy.com
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index d9fd0c13e..181650918 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -6733,7 +6733,6 @@ static std::string get_human_readable_timestamp(uint64_t ts)
gmtime_r(&tt, &tm);
#endif
uint64_t now = time(NULL);
- uint64_t diff = ts > now ? ts - now : now - ts;
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", &tm);
return std::string(buffer);
}