Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 7, 2014
1 parent 745a711 commit b566217
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
22 changes: 1 addition & 21 deletions src/include/bootloader/routines/misc.rb
Expand Up @@ -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
Expand All @@ -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 <string, list>"
)
end
mountpoints = Storage.GetMountPoints,
dev = ""
mp = ""
max = 0
Expand Down
1 change: 0 additions & 1 deletion src/modules/BootCommon.rb
Expand Up @@ -1263,7 +1263,6 @@ def VerifyMDArray
publish :function => :updateTimeoutPopupForFloppy, :type => "void (string)"
publish :function => :remapGlobals, :type => "map <string, string> (map <string, string>)"
publish :function => :remapSections, :type => "list <map <string, any>> (list <map <string, any>>)"
publish :function => :isBlank, :type => "boolean (string)"
publish :function => :splitPath, :type => "list <string> (string)"
publish :function => :GetBootloaderDevice, :type => "string ()"
publish :function => :GetBootloaderDevices, :type => "list <string> ()"
Expand Down

0 comments on commit b566217

Please sign in to comment.