Skip to content

Commit 89df6db

Browse files
committed
Remove dead code
1 parent 2e6e325 commit 89df6db

File tree

3 files changed

+7
-37
lines changed

3 files changed

+7
-37
lines changed

src/apple2/input.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ void input_line(unsigned char x, unsigned char y, unsigned char o, char *c, unsi
133133
cputc(' ');
134134
c[i] = 0;
135135
return; // done
136-
break;
137136
default:
138137
if (i < len)
139138
{
@@ -264,9 +263,7 @@ SFSubState input_select_file_choose(void)
264263
}
265264
if (pos > 0)
266265
return SF_PREV_PAGE;
267-
else
268-
return SF_DEVANCE_FOLDER;
269-
return SF_CHOOSE;
266+
return SF_DEVANCE_FOLDER;
270267
case KEY_DOWN_ARROW:
271268
case 'm':
272269
case 'M':
@@ -279,7 +276,6 @@ SFSubState input_select_file_choose(void)
279276
select_display_long_filename();
280277
return SF_CHOOSE;
281278
}
282-
break;
283279
case ',':
284280
case '<':
285281
if (pos > 0)
@@ -379,16 +375,6 @@ SSSubState input_select_slot_choose(void)
379375
selected_device_slot=bar_get();
380376
mode = MODE_READ;
381377
return SS_DONE;
382-
// Ask for mode.
383-
screen_select_slot_mode();
384-
k = input_select_slot_mode(&mode);
385-
386-
if (!k)
387-
{
388-
state = SELECT_FILE;
389-
backToFiles = true;
390-
}
391-
return SS_DONE;
392378
case 'W':
393379
case 'w':
394380
selected_device_slot=bar_get();
@@ -459,7 +445,6 @@ SISubState input_show_info(void)
459445
state = HOSTS_AND_DEVICES;
460446
return SI_DONE;
461447
}
462-
return SI_SHOWINFO;
463448
}
464449

465450
HDSubState input_hosts_and_devices_hosts(void)
@@ -571,13 +556,11 @@ HDSubState input_hosts_and_devices_devices(void)
571556
selected_device_slot=bar_get();
572557
hosts_and_devices_devices_set_mode(MODE_READ);
573558
return HD_DEVICES;
574-
break;
575559
case 'W':
576560
case 'w':
577561
selected_device_slot=bar_get();
578562
hosts_and_devices_devices_set_mode(MODE_WRITE);
579563
return HD_DEVICES;
580-
break;
581564
// case KEY_CLEAR:
582565
// return HD_CLEAR_ALL_DEVICES;
583566
case KEY_UP_ARROW:

src/atari/input.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ HDSubState input_hosts_and_devices_hosts(void)
343343
default: // Anything but Y/y take to mean "no"
344344
return HD_HOSTS;
345345
}
346-
return HD_HOSTS;
347346
case KCODE_RETURN:
348347
selected_host_slot = bar_get() - HOSTS_START_Y;
349348
if ( !wifiEnabled && strcmp((char *) hostSlots[selected_host_slot],"SD") != 0) // Don't go in a TNFS host if wifi is disabled.
@@ -461,7 +460,6 @@ HDSubState input_hosts_and_devices_devices(void)
461460
default: // Anything but Y/y take to mean "no"
462461
return HD_DEVICES;
463462
}
464-
return HD_DEVICES;
465463
case '!':
466464
mount_and_boot();
467465
default:
@@ -547,9 +545,7 @@ SFSubState input_select_file_choose(void)
547545
}
548546
if ( pos > 0 )
549547
return SF_PREV_PAGE;
550-
else
551-
return SF_DEVANCE_FOLDER;
552-
return SF_CHOOSE;
548+
return SF_DEVANCE_FOLDER;
553549
case 0x87:
554550
case '>':
555551
if ((ENTRIES_PER_PAGE == _visibleEntries ) && (dir_eof == false))
@@ -674,16 +670,13 @@ unsigned char input_select_slot_mode(char *mode)
674670
{
675671
case KCODE_ESCAPE:
676672
return 0;
677-
break;
678673
case 'W':
679674
mode[0] = 2;
680675
return 1;
681-
break;
682676
case KCODE_RETURN:
683677
case 'R':
684678
mode[0] = 1;
685679
return 1;
686-
break;
687680
default:
688681
break;
689682
}

src/c64/input.c

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,11 @@ SFSubState input_select_file_choose(void)
176176
case KEY_RIGHT_ARROW:
177177
if ((bar_get() == 14) && (dir_eof == false))
178178
return SF_NEXT_PAGE;
179-
else
180-
{
181-
long_entry_displayed = false;
182-
bar_down();
183-
select_display_long_filename();
184-
return SF_CHOOSE;
185-
}
186-
break;
179+
180+
long_entry_displayed = false;
181+
bar_down();
182+
select_display_long_filename();
183+
return SF_CHOOSE;
187184
case ',':
188185
case '<':
189186
if (pos > 0)
@@ -309,7 +306,6 @@ SISubState input_show_info(void)
309306
state = HOSTS_AND_DEVICES;
310307
return SI_DONE;
311308
}
312-
return SI_SHOWINFO;
313309
}
314310

315311
HDSubState input_hosts_and_devices_hosts(void)
@@ -395,13 +391,11 @@ HDSubState input_hosts_and_devices_devices(void)
395391
selected_device_slot = bar_get();
396392
hosts_and_devices_devices_set_mode(0);
397393
return HD_DEVICES;
398-
break;
399394
case 'W':
400395
case 'w':
401396
selected_device_slot = bar_get();
402397
hosts_and_devices_devices_set_mode(2);
403398
return HD_DEVICES;
404-
break;
405399
// case KEY_CLEAR:
406400
// return HD_CLEAR_ALL_DEVICES;
407401
case KEY_UP_ARROW:

0 commit comments

Comments
 (0)