Pārlūkot izejas kodu

Remove unused variable

master
Arun Prakash Jana pirms 6 gadiem
vecāks
revīzija
1388b9ea71
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
1 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. +1
    -6
      src/nnn.c

+ 1
- 6
src/nnn.c Parādīt failu

@@ -216,7 +216,7 @@ typedef struct {
uint copymode : 1; /* Set when copying files */ uint copymode : 1; /* Set when copying files */
uint showdetail : 1; /* Clear to show fewer file info */ uint showdetail : 1; /* Clear to show fewer file info */
uint ctxactive : 1; /* Context active or not */ uint ctxactive : 1; /* Context active or not */
uint reserved : 7;
uint reserved : 8;
/* The following settings are global */ /* The following settings are global */
uint curctx : 2; /* Current context number */ uint curctx : 2; /* Current context number */
uint dircolor : 1; /* Current status of dir color */ uint dircolor : 1; /* Current status of dir color */
@@ -231,7 +231,6 @@ typedef struct {
uint filter_re : 1; /* Use regex filters */ uint filter_re : 1; /* Use regex filters */
uint wild : 1; /* Do not sort entries on dir load */ uint wild : 1; /* Do not sort entries on dir load */
uint trash : 1; /* Move removed files to trash */ uint trash : 1; /* Move removed files to trash */
uint badexit : 1; /* Program quit due to dir removed or moved */
} settings; } settings;


/* Contexts or workspaces */ /* Contexts or workspaces */
@@ -271,7 +270,6 @@ static settings cfg = {
1, /* filter_re */ 1, /* filter_re */
0, /* wild */ 0, /* wild */
0, /* trash */ 0, /* trash */
0, /* badexit */
}; };


static context g_ctx[CTX_MAX] __attribute__ ((aligned)); static context g_ctx[CTX_MAX] __attribute__ ((aligned));
@@ -4800,9 +4798,6 @@ int main(int argc, char *argv[])
browse(initpath); browse(initpath);
exitcurses(); exitcurses();


if (cfg.badexit)
xerror();

#ifndef NORL #ifndef NORL
write_history(NULL); write_history(NULL);
#endif #endif


Notiek ielāde…
Atcelt
Saglabāt