* dir.c (sort_type_to_name): Remove, it's unused in the text
edition. (sort_name_to_type): Likewise. * dir.h: Adjust to match.
Этот коммит содержится в:
родитель
358abbe0df
Коммит
47f87cba24
@ -1,5 +1,10 @@
|
||||
2001-11-14 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* dir.c (sort_type_to_name): Remove, it's unused in the text
|
||||
edition.
|
||||
(sort_name_to_type): Likewise.
|
||||
* dir.h: Adjust to match.
|
||||
|
||||
* mouse.c: Add default cases to fix warnings with gcc-2.96.
|
||||
|
||||
2001-11-12 Pavel Roskin <proski@gnu.org>
|
||||
|
25
src/dir.c
25
src/dir.c
@ -686,28 +686,3 @@ do_reload_dir (dir_list *list, sortfn *sort, int count, int rev,
|
||||
return next_free;
|
||||
}
|
||||
|
||||
char *
|
||||
sort_type_to_name (sortfn *sort_fn)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < SORT_TYPES; i++)
|
||||
if ((sortfn *) (sort_orders [i].sort_fn) == sort_fn)
|
||||
return _(sort_orders [i].sort_name);
|
||||
|
||||
return _("Unknown");
|
||||
}
|
||||
|
||||
sortfn *
|
||||
sort_name_to_type (char *sname)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < SORT_TYPES; i++)
|
||||
if ( g_strcasecmp (sort_orders [i].sort_name, sname) == 0)
|
||||
return (sortfn *) sort_orders [i].sort_fn;
|
||||
|
||||
/* default case */
|
||||
return (sortfn *) sort_name;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ int sort_group (const file_entry *a, const file_entry *b);
|
||||
/* This is the number of sort types not available in that dialog box */
|
||||
#define SORT_TYPES_EXTRA 6
|
||||
|
||||
/* The total, used by Tk version */
|
||||
/* The total nnumber of sort types */
|
||||
#define SORT_TYPES_TOTAL (SORT_TYPES + SORT_TYPES_EXTRA)
|
||||
|
||||
typedef struct {
|
||||
@ -86,7 +86,4 @@ extern int show_dot_files;
|
||||
extern int show_backups;
|
||||
extern int mix_all_files;
|
||||
|
||||
char *sort_type_to_name (sortfn *);
|
||||
sortfn *sort_name_to_type (char *type);
|
||||
|
||||
#endif /* __DIR_H */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user