mirror of https://github.com/MidnightCommander/mc
* main.h: Remove dead declarations.
* setup.c: Remove defunct extension alignment support. * util.c: Likewise. * util.h: Likewise.
This commit is contained in:
parent
03f801b0f2
commit
030d1bf2ad
|
@ -1,5 +1,10 @@
|
|||
2002-01-17 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* main.h: Remove dead declarations.
|
||||
* setup.c: Remove defunct extension alignment support.
|
||||
* util.c: Likewise.
|
||||
* util.h: Likewise.
|
||||
|
||||
* main.c: Remove unused toggle_* functions.
|
||||
|
||||
* dir.c: Show backups by default.
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
#ifndef __MAIN_H
|
||||
#define __MAIN_H
|
||||
/* Toggling functions */
|
||||
void toggle_eight_bit (void);
|
||||
void toggle_clean_exec (void);
|
||||
void toggle_fast_reload (void);
|
||||
void toggle_mix_all_files (void);
|
||||
void toggle_show_backup (void);
|
||||
void toggle_show_hidden (void);
|
||||
void toggle_show_mini_status (void);
|
||||
void toggle_align_extensions (void);
|
||||
void toggle_mix_all_files (void);
|
||||
void toggle_fast_reload (void);
|
||||
void toggle_confirm_delete (void);
|
||||
|
||||
enum {
|
||||
RP_NOCLEAR,
|
||||
|
|
|
@ -160,7 +160,6 @@ static const struct {
|
|||
{ "pause_after_run", &pause_after_run },
|
||||
{ "shell_patterns", &easy_patterns },
|
||||
{ "auto_save_setup", &auto_save_setup },
|
||||
{ "align_extensions", &align_extensions },
|
||||
{ "auto_menu", &auto_menu },
|
||||
{ "use_internal_view", &use_internal_view },
|
||||
{ "use_internal_edit", &use_internal_edit },
|
||||
|
|
28
src/util.c
28
src/util.c
|
@ -58,7 +58,6 @@
|
|||
char app_text [] = "Midnight-Commander";
|
||||
|
||||
int easy_patterns = 1;
|
||||
int align_extensions = 1;
|
||||
int tilde_trunc = 1;
|
||||
|
||||
#ifndef VFS_STANDALONE
|
||||
|
@ -548,33 +547,6 @@ char *extension (char *filename)
|
|||
return "";
|
||||
}
|
||||
|
||||
/* This routine uses the fact that x is at most 14 chars or so */
|
||||
char *split_extension (char *x, int pad)
|
||||
{
|
||||
return x;
|
||||
|
||||
/* Buggy code
|
||||
if (!align_extensions)
|
||||
return x;
|
||||
|
||||
if (strlen (x) >= pad)
|
||||
return x;
|
||||
|
||||
if ((ext = extension (x)) == x || *ext == 0)
|
||||
return x;
|
||||
|
||||
strcpy (xbuf, x);
|
||||
for (i = strlen (x); i < pad; i++)
|
||||
xbuf [i] = ' ';
|
||||
xbuf [pad] = 0;
|
||||
|
||||
l = strlen (ext);
|
||||
for (i = 0; i < l; i++)
|
||||
xbuf [pad-i] = *(ext+l-i-1);
|
||||
for (i = xbuf + (ext - x); i <
|
||||
return xbuf; */
|
||||
}
|
||||
|
||||
int get_int (char *file, char *key, int def)
|
||||
{
|
||||
return GetPrivateProfileInt (app_text, key, def, file);
|
||||
|
|
|
@ -24,7 +24,6 @@ char *string_perm (mode_t mode_bits);
|
|||
char *strip_password (char *path, int has_prefix);
|
||||
char *strip_home_and_password(char *dir);
|
||||
char *extension (char *);
|
||||
char *split_extension (char *, int pad);
|
||||
char *concat_dir_and_file (const char *dir, const char *file);
|
||||
char *unix_error_string (int error_num);
|
||||
char *skip_separators (char *s);
|
||||
|
@ -40,8 +39,6 @@ int set_nonblocking (int fd);
|
|||
char *x_basename (char *s);
|
||||
char *g_readlink (char *path);
|
||||
|
||||
extern int align_extensions;
|
||||
|
||||
/* Profile managing functions */
|
||||
int set_int (char *, char *, int);
|
||||
int get_int (char *, char *, int);
|
||||
|
|
Loading…
Reference in New Issue