1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-21 16:55:02 -05:00

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;
}
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.
* 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);
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);
FILE *hexchat_fopen_file (const char *file, const char *mode, int xof_flags);
GFile *hexchat_open_gfile (const char *filename);
gsize stream_writef (GOutputStream *ostream, const char *fmt, ...) G_GNUC_PRINTF (2, 3);
GDataInputStream *file_get_datainputstream (GFile *file);