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
|
@ -881,7 +881,6 @@ public:
|
|||
void serialize(std::ostream &os, u16 protocol_version) const;
|
||||
void deSerialize(std::istream &is);
|
||||
|
||||
inline virtual bool getNodeRegistrationStatus() const;
|
||||
inline virtual void setNodeRegistrationStatus(bool completed);
|
||||
|
||||
virtual void pendNodeResolve(NodeResolver *nr);
|
||||
|
@ -1805,13 +1804,6 @@ void ContentFeatures::deSerializeOld(std::istream &is, int version)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
inline bool CNodeDefManager::getNodeRegistrationStatus() const
|
||||
{
|
||||
return m_node_registration_complete;
|
||||
}
|
||||
|
||||
|
||||
inline void CNodeDefManager::setNodeRegistrationStatus(bool completed)
|
||||
{
|
||||
m_node_registration_complete = completed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue