summaryrefslogtreecommitdiff
path: root/src/chat.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/chat.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/chat.h')
-rw-r--r--src/chat.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/chat.h b/src/chat.h
index 5de676a2e..b7c6b74b9 100644
--- a/src/chat.h
+++ b/src/chat.h
@@ -86,8 +86,6 @@ public:
// Get number of lines currently in buffer.
u32 getLineCount() const;
- // Get scrollback size, maximum number of lines in buffer.
- u32 getScrollback() const;
// Get reference to i-th chat line.
const ChatLine& getLine(u32 index) const;
@@ -162,8 +160,7 @@ public:
std::wstring getLine() const { return m_line; }
// Get section of line that is currently selected
- std::wstring getSelection() const
- { return m_line.substr(m_cursor, m_cursor_len); }
+ std::wstring getSelection() const { return m_line.substr(m_cursor, m_cursor_len); }
// Clear the current line
void clear();