Skip to content

Commit

Permalink
remove unused method IsMbr and AddMbrToDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 2, 2014
1 parent 3effa77 commit 55a8e3e
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/include/bootloader/routines/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -682,33 +682,6 @@ def getSwapPartitions



# Check if device is MBR of a disk
# @param [String] device string device to check
# @return [Boolean] true if is MBR
def IsMbr(device)
if Builtins.regexpmatch(
device,
"^/dev/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]+$"
)
return true
end
if Builtins.regexpmatch(
device,
"^/dev/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]+/.*d[0-9]+$"
)
return true
end
false
end

# Add '(MBR)' to the disk description if it is a MBR of some partition
# @param [String] descr string disk description
# @param [String] device string disk device
# @return [String] updated description
def AddMbrToDescription(descr, device)
IsMbr(device) ? Builtins.sformat("%1 (MBR)", descr) : descr
end

# Update the Kernel::vgaType value to the saved one if not defined
def UpdateInstallationKernelParameters
saved_params = {}
Expand Down

0 comments on commit 55a8e3e

Please sign in to comment.