Kill hexchat_fopen_file()

This commit is contained in:
TingPing 2014-08-26 23:10:41 -04:00
parent 6d379b1510
commit f91844673c
2 changed files with 0 additions and 17 deletions

View File

@ -1417,22 +1417,6 @@ hexchat_open_file (char *file, int flags, int mode, int xof_flags)
return fd; return fd;
} }
FILE *
hexchat_fopen_file (const char *file, const char *mode, int xof_flags)
{
char *buf;
FILE *fh;
if (xof_flags & XOF_FULLPATH)
return fopen (file, mode);
buf = g_build_filename (get_xdir (), file, NULL);
fh = g_fopen (buf, mode);
g_free (buf);
return fh;
}
/* /*
* Returns a #GFile* to a file in HexChat's config dir. * Returns a #GFile* to a file in HexChat's config dir.
* Must be g_object_unref()'d when done. * Must be g_object_unref()'d when done.

View File

@ -50,7 +50,6 @@ int list_delentry (GSList ** list, char *name);
void list_addentry (GSList ** list, char *cmd, char *name); void list_addentry (GSList ** list, char *cmd, char *name);
int cmd_set (session *sess, char *tbuf, char *word[], char *word_eol[]); int cmd_set (session *sess, char *tbuf, char *word[], char *word_eol[]);
int hexchat_open_file (char *file, int flags, int mode, int xof_flags); int hexchat_open_file (char *file, int flags, int mode, int xof_flags);
FILE *hexchat_fopen_file (const char *file, const char *mode, int xof_flags);
GFile *hexchat_open_gfile (const char *filename); GFile *hexchat_open_gfile (const char *filename);
gsize stream_writef (GOutputStream *ostream, const char *fmt, ...) G_GNUC_PRINTF (2, 3); gsize stream_writef (GOutputStream *ostream, const char *fmt, ...) G_GNUC_PRINTF (2, 3);
GDataInputStream *file_get_datainputstream (GFile *file); GDataInputStream *file_get_datainputstream (GFile *file);