From 551339813797a9b274ccf5f3f0c4f0d0b44cbf64 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:08 +0200 Subject: Remove "allocate" member function from the x_info traits --- src/init2.cc | 93 ------------------------------------------------------------ 1 file changed, 93 deletions(-) (limited to 'src') diff --git a/src/init2.cc b/src/init2.cc index 9590633e..bb909328 100644 --- a/src/init2.cc +++ b/src/init2.cc @@ -275,11 +275,6 @@ namespace { static constexpr char const *name = "f_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_f_info_txt(fp); @@ -291,11 +286,6 @@ namespace { static constexpr char const *name = "k_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_k_info_txt(fp); @@ -307,11 +297,6 @@ namespace { static constexpr char const *name = "set_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_set_info_txt(fp); @@ -323,11 +308,6 @@ namespace { static constexpr char const *name = "a_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_a_info_txt(fp); @@ -339,11 +319,6 @@ namespace { static constexpr char const *name = "s_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_s_info_txt(fp); @@ -355,11 +330,6 @@ namespace { static constexpr char const *name = "ab_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_ab_info_txt(fp); @@ -371,11 +341,6 @@ namespace { static constexpr char const *name = "e_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_e_info_txt(fp); @@ -387,11 +352,6 @@ namespace { static constexpr char const *name = "ra_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_ra_info_txt(fp); @@ -403,11 +363,6 @@ namespace { static constexpr char const *name = "r_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_r_info_txt(fp); @@ -419,11 +374,6 @@ namespace { static constexpr char const *name = "re_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_re_info_txt(fp); @@ -435,11 +385,6 @@ namespace { static constexpr char const *name = "d_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_d_info_txt(fp); @@ -451,11 +396,6 @@ namespace { static constexpr char const *name = "st_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_st_info_txt(fp); @@ -467,11 +407,6 @@ namespace { static constexpr char const *name = "ow_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_ow_info_txt(fp); @@ -483,11 +418,6 @@ namespace { static constexpr char const *name = "ba_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_ba_info_txt(fp); @@ -499,11 +429,6 @@ namespace { static constexpr char const *name = "wf_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_wf_info_txt(fp); @@ -515,11 +440,6 @@ namespace { static constexpr char const *name = "tr_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_t_info_txt(fp); @@ -531,11 +451,6 @@ namespace { static constexpr char const *name = "v_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_v_info_txt(fp); @@ -547,11 +462,6 @@ namespace { static constexpr char const *name = "p_info.txt"; - static void allocate() - { - // Nothing to do - } - static errr parse(FILE *fp) { return init_player_info_txt(fp); @@ -563,9 +473,6 @@ namespace { template static errr init_x_info() { - /* Allocate the data array */ - T::allocate(); - /* Build the filename */ boost::filesystem::path path(ANGBAND_DIR_EDIT); path /= T::name; -- cgit v1.2.3