mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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
This commit is contained in:
parent
35267406aa
commit
ce9802266e
15 changed files with 18 additions and 85 deletions
|
@ -77,11 +77,6 @@ u32 ChatBuffer::getLineCount() const
|
|||
return m_unformatted.size();
|
||||
}
|
||||
|
||||
u32 ChatBuffer::getScrollback() const
|
||||
{
|
||||
return m_scrollback;
|
||||
}
|
||||
|
||||
const ChatLine& ChatBuffer::getLine(u32 index) const
|
||||
{
|
||||
assert(index < getLineCount()); // pre-condition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue