HOPKINS: Move _maxLineIdx to LinesManager, remove a useless variable