public static bool RemoveLine(int lineName) { /* Removes the line associated with the provided lineName hash. * If no such has exists, or was previously deleted this function * return false. Otherwise, returning true means that the line * was sucesfully removed. */ if (lines.ContainsKey(lineName)) { NocabLine oldLine = lines[lineName]; NocabLinePooler.returnLine(oldLine); lines.Remove(lineName); return(true); } return(false); }