summaryrefslogtreecommitdiff
path: root/src/clientiface.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-05-20 08:15:56 +0200
committerGitHub <noreply@github.com>2017-05-20 08:15:56 +0200
commitce9802266ef1def339ec2e119c59090d0fd07c90 (patch)
tree7a408a21c0448030d162cbcc88b74febf5aefb87 /src/clientiface.h
parent35267406aa849195b72bf2edf63fecb16be013bc (diff)
downloadminetest-ce9802266ef1def339ec2e119c59090d0fd07c90.tar.gz
minetest-ce9802266ef1def339ec2e119c59090d0fd07c90.tar.bz2
minetest-ce9802266ef1def339ec2e119c59090d0fd07c90.zip
Various code cleanup & little performance improvement on HTTP download (#5772)
* Disable or remove unused enum members/functions * Tiny code style fixes * Make some functions const * Replace ClientMediaDownloader std::unordered_map with std::map
Diffstat (limited to 'src/clientiface.h')
-rw-r--r--src/clientiface.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clientiface.h b/src/clientiface.h
index 49101fbc1..a219ed5fc 100644
--- a/src/clientiface.h
+++ b/src/clientiface.h
@@ -345,7 +345,7 @@ public:
{ serialization_version = m_pending_serialization_version; }
/* get uptime */
- u32 uptime();
+ u32 uptime() const;
/* set version information */
void setVersionInfo(u8 major, u8 minor, u8 patch, const std::string &full)
@@ -360,7 +360,6 @@ public:
u8 getMajor() const { return m_version_major; }
u8 getMinor() const { return m_version_minor; }
u8 getPatch() const { return m_version_patch; }
- std::string getVersion() const { return m_full_version; }
private:
// Version is stored in here after INIT before INIT2
u8 m_pending_serialization_version;