Skip to content

Commit

Permalink
remove unused method findRelativeDefaultLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 2, 2014
1 parent aacb644 commit ce2c311
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 @@ -1022,41 +1022,6 @@ def compareAppends(default_append, section_append)



# bnc #440125 - default boot section with failsafe args
# Try to find potencional default linux section
# It can solve problem in function WriteToSysconf() with saving
# wrong (failsafe) args for default
#
# @return [String] name of default boot section

def findRelativeDefaultLinux
default_linux = ""

# create defualt sections
linux_default = CreateLinuxSection("linux")

Builtins.foreach(@sections) do |s|
if Ops.get_string(s, "root", "") == Ops.get(linux_default, "root") &&
Ops.get_string(s, "original_name", "") == "linux"
#FIXME Check for root and original name should be enought, as failsafe allways has failsafe orig name
if compareAppends(
Ops.get_string(linux_default, "append", ""),
Ops.get_string(s, "append", "")
)
default_linux = Ops.get_string(s, "name", "")
end
end
end

Builtins.y2milestone(
"Relative default boot section is: \"%1\"",
default_linux
)
default_linux
end



# bnc #440125 - default boot section with failsafe args
# Check if default boot name is linux
#
Expand Down
1 change: 0 additions & 1 deletion src/modules/BootCommon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ def Md2Partitions(md_device)
publish :function => :UpdateGfxMenuContents, :type => "boolean ()"
publish :function => :BootloaderInstallable, :type => "boolean ()"
publish :function => :PartitionInstallable, :type => "boolean ()"
publish :function => :findRelativeDefaultLinux, :type => "string ()"
publish :function => :isDefaultBootSectioLinux, :type => "boolean (string)"
publish :function => :WriteToSysconf, :type => "void (boolean)"
publish :function => :getBootDisk, :type => "string ()"
Expand Down

0 comments on commit ce2c311

Please sign in to comment.