OSDN Git Service

Refactor: remove wizard/fixed-artifacts-spoiler.cpp's print_header()
authorEric Branlund <ebranlund@fastmail.com>
Sun, 25 Dec 2022 13:42:36 +0000 (06:42 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sun, 25 Dec 2022 13:42:36 +0000 (06:42 -0700)
src/wizard/fixed-artifacts-spoiler.cpp

index 879728e..bdfd244 100644 (file)
@@ -60,14 +60,6 @@ void spoiler_outlist(concptr header, concptr *list, char separator)
 }
 
 /*!
- * @brief バッファにアーティファクト出力情報ヘッダを収める /
- */
-static void print_header(void)
-{
-    spoiler_underline(std::string("Artifact Spoilers for Hengband Version ").append(get_version()).data());
-}
-
-/*!
  * @brief アーティファクト情報を出力するためにダミー生成を行う /
  * Hack -- Create a "forged" artifact
  * @param o_ptr 一時生成先を保管するオブジェクト構造体
@@ -145,7 +137,7 @@ SpoilerOutputResultType spoil_fixed_artifact(concptr fname)
         return SpoilerOutputResultType::FILE_OPEN_FAILED;
     }
 
-    print_header();
+    spoiler_underline(std::string("Artifact Spoilers for Hengband Version ").append(get_version()).data());
     for (const auto &[tval_list, name] : group_artifact_list) {
         spoiler_blanklines(2);
         spoiler_underline(name);