MCPcopy Create free account
hub / github.com/cuberite/cuberite / DeleteKey

Method DeleteKey

lib/inifile/iniFile.cpp:612–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610
611
612bool cIniFile::DeleteKey(const AString & keyname)
613{
614 int keyID = FindKey(keyname);
615 if (keyID == noID)
616 {
617 return false;
618 }
619
620 vector<AString>::iterator npos = names.begin() + keyID;
621 vector<key>::iterator kpos = keys.begin() + keyID;
622 names.erase(npos, npos + 1);
623 keys.erase(kpos, kpos + 1);
624
625 return true;
626}
627
628
629

Callers

nothing calls this directly

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected