MCPcopy Create free account
hub / github.com/ddnet/ddnet / RemoveKey

Method RemoveKey

src/engine/server/authmanager.cpp:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void CAuthManager::RemoveKey(int Slot)
110{
111 m_vKeys.erase(m_vKeys.begin() + Slot);
112 // Update indices of default keys
113 for(int &Default : m_aDefault)
114 {
115 if(Default == Slot)
116 {
117 Default = -1;
118 }
119 else if(Default > Slot)
120 {
121 --Default;
122 }
123 }
124}
125
126int CAuthManager::FindKey(const char *pIdent) const
127{

Callers 1

AuthRemoveKeyMethod · 0.80

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected