diff options
| author | Karel Zak <kzak@redhat.com> | 2013-07-11 17:08:45 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-09-16 16:47:07 +0200 |
| commit | aae727f2f565a69ee8e2749b68c9be880ea5b587 (patch) | |
| tree | ff2f0e3747a2457b7d48c19424269b7f67648f85 /fdisks/fdisk.c | |
| parent | b3ac22eff31bb95bd20f903c7cb4756b0edfc220 (diff) | |
| download | util-linux-aae727f2f565a69ee8e2749b68c9be880ea5b587.tar.gz | |
fdisk: cleanup sgi menu callbackswq
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
| -rw-r--r-- | fdisks/fdisk.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index 9fd43485..172e9ce4 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -388,11 +388,6 @@ expert_command_prompt(struct fdisk_context *cxt) case 'd': print_raw(cxt); break; - case 'g': - /* Deprecated, use 'G' in main menu, just for backward - * compatibility only. */ - fdisk_create_disklabel(cxt, "sgi"); - break; case 'p': list_table(cxt); break; @@ -504,36 +499,10 @@ static void command_prompt(struct fdisk_context *cxt) * are not yet implemented by menu callbacks. Let's * perform the commands here */ switch (c) { - case 'a': - if (fdisk_is_disklabel(cxt, SGI) && - fdisk_ask_partnum(cxt, &n, FALSE) == 0) - fdisk_partition_toggle_flag(cxt, n, SGI_FLAG_BOOT); - else - unknown_command(c); - break; - case 'b': - if (fdisk_is_disklabel(cxt, SGI)) - sgi_set_bootfile(cxt); - else - unknown_command(c); - break; - case 'c': - if (fdisk_is_disklabel(cxt, SGI) && - fdisk_ask_partnum(cxt, &n, FALSE) == 0) - fdisk_partition_toggle_flag(cxt, n, SGI_FLAG_SWAP); - else - unknown_command(c); - break; case 'd': if (fdisk_ask_partnum(cxt, &n, FALSE) == 0) delete_partition(cxt, n); break; - case 'i': - if (fdisk_is_disklabel(cxt, SGI)) - sgi_create_info(cxt); - else - unknown_command(c); - break; case 'l': list_partition_types(cxt); break; |
