summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
commitf43e845258dda28106567b7c86f66d26d93bf0b7 (patch)
treee8ed2e2fde34a272f2c09f521e14a380f8fdfd1a
parent64d76c03e5074d6e3abf2781c3e82545b4c52b73 (diff)
Remove one-use my_fputs()
-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 2696007..de9b755 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 675a02d..4485396 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 5cb2f05..b7c8746 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);