summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
commit9110cc4da22a9c7fed204b4633ac5d8b73f8d9b8 (patch)
treed962185a51b3dbc87b69151e9b379b11cf50b5cc
parentad9a0d02325cb36749f9be25fa52f404f17213ab (diff)
Remove dead code
-rw-r--r--src/externs.h5
-rw-r--r--src/util.cc22
2 files changed, 0 insertions, 27 deletions
diff --git a/src/externs.h b/src/externs.h
index fae7e225..f19ccc37 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -819,14 +819,10 @@ extern bool_ gen_joke_monsters(void *data, void *in, void *out);
/* loadsave.c */
extern bool_ file_exist(cptr buf);
-extern s16b rd_variable(void);
-extern void wr_variable(s16b *var);
-extern void wr_scripts(void);
extern bool_ load_dungeon(char *ext);
extern void save_dungeon(void);
extern bool_ save_player(void);
extern bool_ load_player(void);
-extern errr rd_savefile_new(void);
/* melee1.c */
/* melee2.c */
@@ -1299,7 +1295,6 @@ 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);
-extern errr fd_copy(cptr file, cptr what);
extern int fd_make(cptr file, int mode);
extern int fd_open(cptr file, int flags);
extern errr fd_seek(int fd, huge n);
diff --git a/src/util.cc b/src/util.cc
index 4191bc4c..eec9bfa7 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -425,28 +425,6 @@ errr fd_move(cptr file, cptr what)
/*
-* Hack -- attempt to copy a file
-*/
-errr fd_copy(cptr file, cptr what)
-{
- char buf[1024];
- char aux[1024];
-
- /* Hack -- Try to parse the path */
- if (path_parse(buf, 1024, file)) return ( -1);
-
- /* Hack -- Try to parse the path */
- if (path_parse(aux, 1024, what)) return ( -1);
-
- /* Copy XXX XXX XXX */
- /* (void)rename(buf, aux); */
-
- /* XXX XXX XXX */
- return (1);
-}
-
-
-/*
* Hack -- attempt to open a file descriptor (create file)
*
* This function should fail if the file already exists