mirror of
https://github.com/moparisthebest/hexchat
synced 2024-12-21 23:28:51 -05:00
Kill hexchat_fopen_file()
This commit is contained in:
parent
6d379b1510
commit
f91844673c
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user