Remove unnecessary std::max