zuke: remove -G option (old playlists not supported anymore)

This commit is contained in:
Sigrid 2021-04-13 13:28:31 +02:00
parent c613382caf
commit ff220ea29b

View file

@ -1057,7 +1057,7 @@ plumbaudio(void *kbd)
static void static void
usage(void) usage(void)
{ {
fprint(2, "usage: %s [-s] [-G] [-c aAdDtTp]\n", argv0); fprint(2, "usage: %s [-s] [-c aAdDtTp]\n", argv0);
sysfatal("usage"); sysfatal("usage");
} }
@ -1080,11 +1080,10 @@ threadmain(int argc, char **argv)
{ nil, &ind, CHANRCV }, { nil, &ind, CHANRCV },
{ nil, nil, CHANEND }, { nil, nil, CHANEND },
}; };
int n, scrolling, oldpcur, oldbuttons, pnew, shuffled, nogui; int n, scrolling, oldpcur, oldbuttons, pnew, shuffled;
char buf[64]; char buf[64];
shuffled = 0; shuffled = 0;
nogui = 0;
ARGBEGIN{ ARGBEGIN{
case 'd': case 'd':
debug++; debug++;
@ -1097,9 +1096,6 @@ threadmain(int argc, char **argv)
if(strlen(cols) >= nelem(colwidth)) if(strlen(cols) >= nelem(colwidth))
sysfatal("max %d columns allowed", nelem(colwidth)); sysfatal("max %d columns allowed", nelem(colwidth));
break; break;
case 'G':
nogui = 1;
break;
default: default:
usage(); usage();
break; break;
@ -1112,11 +1108,6 @@ threadmain(int argc, char **argv)
close(0); close(0);
Binit(&out, 1, OWRITE); Binit(&out, 1, OWRITE);
if(nogui){
writeplist();
Bterm(&out);
threadexitsall(nil);
}
pnotifies = fd2path(1, buf, sizeof(buf)) == 0 && strcmp(buf, "/dev/cons") != 0; pnotifies = fd2path(1, buf, sizeof(buf)) == 0 && strcmp(buf, "/dev/cons") != 0;
if(initdraw(nil, nil, "zuke") < 0) if(initdraw(nil, nil, "zuke") < 0)