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

Method DeleteKeyComment

lib/inifile/iniFile.cpp:763–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761
762
763bool cIniFile::DeleteKeyComment(const int keyID, const int commentID)
764{
765 if ((keyID < (int)keys.size()) && (commentID < (int)keys[keyID].comments.size()))
766 {
767 vector<AString>::iterator cpos = keys[keyID].comments.begin() + commentID;
768 keys[keyID].comments.erase(cpos, cpos + 1);
769 return true;
770 }
771 return false;
772}
773
774
775

Callers 1

LoadWorldsMethod · 0.80

Calls 2

sizeMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected