summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/notes.cc2
-rw-r--r--src/util.cc20
-rw-r--r--src/util.hpp1
3 files changed, 1 insertions, 22 deletions
diff --git a/src/notes.cc b/src/notes.cc
index 26960073..de9b7558 100644
--- a/src/notes.cc
+++ b/src/notes.cc
@@ -70,7 +70,7 @@ void output_note(char *final_note)
if (!fff) return;
/* Add note, and close note file */
- my_fputs(fff, final_note, 0);
+ fprintf(fff, "%s\n", final_note);
/* Close the handle */
my_fclose(fff);
diff --git a/src/util.cc b/src/util.cc
index 675a02d1..44853967 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -363,26 +363,6 @@ errr my_fgets(FILE *fff, char *buf, huge n)
/*
-* Hack -- replacement for "fputs()"
-*
-* Dump a string, plus a newline, to a file
-*
-* XXX XXX XXX Process internal weirdness?
-*/
-errr my_fputs(FILE *fff, cptr buf, huge n)
-{
- /* XXX XXX */
- n = n ? n : 0;
-
- /* Dump, ignore errors */
- (void)fprintf(fff, "%s\n", buf);
-
- /* Success */
- return (0);
-}
-
-
-/*
* The Macintosh is a little bit brain-dead sometimes
*/
#ifdef MACINTOSH
diff --git a/src/util.hpp b/src/util.hpp
index 5cb2f058..b7c8746d 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -16,7 +16,6 @@ extern s32b bst(s32b what, s32b t);
extern errr path_temp(char *buf, int max);
extern FILE *my_fopen(cptr file, cptr mode);
extern errr my_fgets(FILE *fff, char *buf, huge n);
-extern errr my_fputs(FILE *fff, cptr buf, huge n);
extern errr my_fclose(FILE *fff);
extern errr fd_kill(cptr file);
extern errr fd_move(cptr file, cptr what);