Skip to content

Commit

Permalink
remove some commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Jan 18, 2025
1 parent 3209306 commit 412ce76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions source/fdisk/fdiskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,25 +275,6 @@ int Create_MBR( void )
}
}

/* Create Master Boot Code if it is not present */
/* currently unused
int Create_MBR_If_Not_Present( void )
{
int error_code;
error_code = Read_Physical_Sectors( 0x80, 0, 0, 1, 1 );
if ( error_code != 0 ) {
return error_code;
}
if ( ( sector_buffer[0x1fe] != 0x55 ) ||
( sector_buffer[0x1ff] != 0xaa ) ) {
return Create_MBR();
}
return 0;
}
*/

/* parse bool_text for "ON" or "OFF" and set integer var accordingly */
int bool_string_to_int( int *var, const char *bool_text )
{
Expand Down
4 changes: 0 additions & 4 deletions source/fdisk/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ void Interactive_User_Interface( void )
Ask_User_About_FAT32_Support();
}

// Create_MBR_If_Not_Present(); DO NOT AUTOMATICALLY CREATE THE MBR.
// THIS FEATURE WAS REQUESTED TO BE
// DISABLED.

do {

menu = Standard_Menu( menu );
Expand Down

0 comments on commit 412ce76

Please sign in to comment.