qulogic/libgnt

Remove GntFile and related functions.

2019-05-14, Elliott Sales de Andrade
91d00a25e3da
Parents 648e28d1ad82
Children 0734cb0b8f83
Remove GntFile and related functions.
  • +0 -43
    gntfilesel.c
  • --- a/gntfilesel.c Tue May 14 05:26:20 2019 -0400
    +++ b/gntfilesel.c Tue May 14 05:28:12 2019 -0400
    @@ -40,20 +40,6 @@
    #include <glib/gstdio.h>
    -typedef enum
    -{
    - GNT_FILE_REGULAR,
    - GNT_FILE_DIR
    -} GntFileType;
    -
    -typedef struct
    -{
    - char *fullpath;
    - char *basename;
    - GntFileType type;
    - unsigned long size;
    -} GntFile;
    -
    typedef struct
    {
    GntWindow parent;
    @@ -170,35 +156,6 @@
    return find;
    }
    -static GntFile *
    -gnt_file_new_dir(const char *name)
    -{
    - GntFile *file = g_new0(GntFile, 1);
    - file->basename = g_strdup(name);
    - file->type = GNT_FILE_DIR;
    - return file;
    -}
    -
    -static GntFile *
    -gnt_file_new(const char *name, unsigned long size)
    -{
    - GntFile *file = g_new0(GntFile, 1);
    - file->basename = g_strdup(name);
    - file->type = GNT_FILE_REGULAR;
    - file->size = size;
    - return file;
    -}
    -
    -static void
    -gnt_file_free(GntFile *file)
    -{
    - g_return_if_fail(file != NULL);
    -
    - g_free(file->fullpath);
    - g_free(file->basename);
    - g_free(file);
    -}
    -
    static gboolean
    location_changed(GntFileSel *sel, GError **err)
    {