Skip to content

Commit

Permalink
remove unused method updateTimeoutPopupForFloppy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 2, 2014
1 parent 20ef2e6 commit 8af62de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
35 changes: 0 additions & 35 deletions src/include/bootloader/routines/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,41 +87,6 @@ def getAnyTypeAttrib(attrib, defaultv)

# other misc functions



# Update the text of countdown widget
# @param [String] bootloader string printable name of used bootloader
def updateTimeoutPopupForFloppy(bootloader)
return if Mode.normal

confirm_boot_msg = Misc.boot_msg
# data saved to floppy disk
msg = Builtins.sformat(
# popup, %1 is bootloader name
_("The %1 boot sector has been written to the floppy disk."),
bootloader
)
msg = Ops.add(msg, "\n")
# always hard boot
# If LILO was written on floppy disk and we need
# to do a hard reboot (because a different kernel
# was installed), tell the user to leave the floppy
# inserted.
msg = Ops.add(
msg,
# popup - continuing
_("Leave the floppy disk in the drive.")
)

if Ops.greater_than(Builtins.size(confirm_boot_msg), 0)
msg = Ops.add(Ops.add(msg, "\n"), confirm_boot_msg)
end
Misc.boot_msg = msg

nil
end


# Function remap globals settings "boot_custom" device name (/dev/sda)
# or to label (ufo_partition)
# @param map<string,string> globals
Expand Down
1 change: 0 additions & 1 deletion src/modules/BootCommon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,6 @@ def Md2Partitions(md_device)
publish :function => :getLoaderName, :type => "string (string, symbol)"
publish :function => :getBooleanAttrib, :type => "boolean (string)"
publish :function => :getAnyTypeAttrib, :type => "any (string, any)"
publish :function => :updateTimeoutPopupForFloppy, :type => "void (string)"
publish :function => :remapGlobals, :type => "map <string, string> (map <string, string>)"
publish :function => :GetBootloaderDevice, :type => "string ()"
publish :function => :GetBootloaderDevices, :type => "list <string> ()"
Expand Down

0 comments on commit 8af62de

Please sign in to comment.