diff --git a/src/servers/registrar/AppInfoList.cpp b/src/servers/registrar/AppInfoList.cpp index d3f2a657b4..2f0585a9ac 100644 --- a/src/servers/registrar/AppInfoList.cpp +++ b/src/servers/registrar/AppInfoList.cpp @@ -84,6 +84,15 @@ AppInfoList::RemoveInfo(RosterAppInfo *info) return fInfos.RemoveItem(info); } +// MakeEmpty +/*! \brief Removes all RosterAppInfos from the list. +*/ +void +AppInfoList::MakeEmpty() +{ + fInfos.MakeEmpty(); +} + // InfoFor /*! \brief Returns the RosterAppInfo with the supplied signature. diff --git a/src/servers/registrar/AppInfoList.h b/src/servers/registrar/AppInfoList.h index bab39a0412..ec001dfd23 100644 --- a/src/servers/registrar/AppInfoList.h +++ b/src/servers/registrar/AppInfoList.h @@ -45,6 +45,7 @@ public: bool AddInfo(RosterAppInfo *info); bool RemoveInfo(RosterAppInfo *info); + void MakeEmpty(); RosterAppInfo *InfoFor(const char *signature) const; RosterAppInfo *InfoFor(team_id team) const;