From b5662172c12d56414038a45ee56d0abefc8dfe23 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Mon, 7 Apr 2014 16:00:32 +0200 Subject: [PATCH] remove unused method --- src/include/bootloader/routines/misc.rb | 22 +--------------------- src/modules/BootCommon.rb | 1 - 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/include/bootloader/routines/misc.rb b/src/include/bootloader/routines/misc.rb index 37a40e692..89c2ce97e 100644 --- a/src/include/bootloader/routines/misc.rb +++ b/src/include/bootloader/routines/misc.rb @@ -293,16 +293,6 @@ def remapSections(sec) deep_copy(temp_sec) end - - - # returns true if char is blank (newline, tab or space) - # @param [String] s single char string - # @return [Boolean] blank/non blank - def isBlank(s) - return true if s == "\n" || s == "\t" || s == " " - false - end - # returns list difference A \ B (items that are in A and are not in B) # @param [Array] a list A # @param [Array] b list B @@ -319,17 +309,7 @@ def difflist(a, b) # @return a list containing device and relative path, # eg. ["/dev/hda1", "/vmlinuz"] def splitPath(fullpth) - # UGHLY HACK because of testsuites - mountpoints = {} - if Mode.test - mountpoints = { "/" => ["/dev/hda2"], "/boot" => ["/dev/hda1"] } - else - mountpoints = Convert.convert( - Storage.GetMountPoints, - :from => "map", - :to => "map " - ) - end + mountpoints = Storage.GetMountPoints, dev = "" mp = "" max = 0 diff --git a/src/modules/BootCommon.rb b/src/modules/BootCommon.rb index 6edc61e95..8d075407a 100644 --- a/src/modules/BootCommon.rb +++ b/src/modules/BootCommon.rb @@ -1263,7 +1263,6 @@ def VerifyMDArray publish :function => :updateTimeoutPopupForFloppy, :type => "void (string)" publish :function => :remapGlobals, :type => "map (map )" publish :function => :remapSections, :type => "list > (list >)" - publish :function => :isBlank, :type => "boolean (string)" publish :function => :splitPath, :type => "list (string)" publish :function => :GetBootloaderDevice, :type => "string ()" publish :function => :GetBootloaderDevices, :type => "list ()"