Skip to content

Commit

Permalink
remove useless size template
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jun 27, 2024
1 parent 2732eac commit e483197
Showing 1 changed file with 2 additions and 58 deletions.
60 changes: 2 additions & 58 deletions src/solver/variable/include/antares/solver/variable/categories.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@
#include <antares/antares/constants.h>
#include "constants.h"

namespace Antares
{
namespace Solver
{
namespace Variable
{
namespace Category
{
namespace DataLevel
namespace Antares::Solver::Variable::Category::DataLevel
{
//! Data that belong to a single area
constexpr uint8_t area = 1;
Expand Down Expand Up @@ -266,54 +258,6 @@ inline void PrecisionLevelToStream(StreamT& out, int precisionLevel)
out += NULL;
}
}

template<int PrecisionLevel>
struct MaxRowCount
{
enum
{
value = 0
};
};

template<>
struct MaxRowCount<hourly>
{
enum
{
value = maxHoursInAYear
};
};

template<>
struct MaxRowCount<daily>
{
enum
{
value = maxDaysInAYear
};
};

template<>
struct MaxRowCount<weekly>
{
enum
{
value = maxWeeksInAYear
};
};

template<>
struct MaxRowCount<monthly>
{
enum
{
value = MONTHS_PER_YEAR
};
};
} // namespace Category
} // namespace Variable
} // namespace Solver
} // namespace Antares
} // namespace Antares::Solver::Variable::Category::DataLevel

#endif // __SOLVER_VARIABLE_CATEGORIES_H__

0 comments on commit e483197

Please sign in to comment.