From: Andrey Alekseenko Date: Tue, 18 May 2021 11:41:49 +0000 (+0300) Subject: Remove unused StatisticsStatus values X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=6ec86f5b9c783f5d36877e55d82d3303d26f67cc;p=alexxy%2Fgromacs.git Remove unused StatisticsStatus values The `enumValueToString(StatisticsStatus)` had the wrong order of strings. But in fact most of these statuses were not used anyway, so we can just remove the corresponding enum values altogether. --- diff --git a/src/gromacs/statistics/statistics.cpp b/src/gromacs/statistics/statistics.cpp index 38ccc006e7..6f5fc87e2e 100644 --- a/src/gromacs/statistics/statistics.cpp +++ b/src/gromacs/statistics/statistics.cpp @@ -326,8 +326,7 @@ StatisticsStatus gmx_stats_get_ase(gmx_stats_t gstats, real* aver, real* sigma, static const char* enumValueToString(StatisticsStatus enumValue) { constexpr gmx::EnumerationArray statisticsStatusNames = { - "All well in STATS land", "No points", "Not enough memory", - "Invalid histogram input", "Unknown error", "Not implemented yet" + "All well in STATS land", "No points" }; return statisticsStatusNames[enumValue]; } diff --git a/src/gromacs/statistics/statistics.h b/src/gromacs/statistics/statistics.h index bfe0354af9..8cf2db947d 100644 --- a/src/gromacs/statistics/statistics.h +++ b/src/gromacs/statistics/statistics.h @@ -56,10 +56,6 @@ enum class StatisticsStatus : int { Ok, NoPoints, - NoMemory, - Error, - InvalidInput, - NotImplemented, Count };