Skip to content

Commit

Permalink
remove unused methods from Bootloader API
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 7, 2014
1 parent 6f80e8b commit 52001d7
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions src/modules/Bootloader.rb
Expand Up @@ -903,20 +903,6 @@ def DelDuplicatedSections
nil
end

# write mode settings function

# Set settings how to write bootloader
# @param [Hash{String => Object}] settings map of settings
def SetWriteMode(settings)
settings = deep_copy(settings)
Builtins.y2milestone("Setting mode for writing: %1", settings)
Builtins.foreach(settings) do |k, v|
Ops.set(BootCommon.write_settings, k, v)
end

nil
end

# sections handling functions

# Resolve a single symlink in key image_key in section map s
Expand Down Expand Up @@ -1239,38 +1225,6 @@ def setLoaderType(bootloader)
nil
end

# Get root fs device
# @return [String] root device
def getRootDevice
ReadOrProposeIfNeeded()
BootStorage.RootPartitionDevice
end

# Set root fs device
# @param [String] device string root device
def setRootDevice(device)
ReadOrProposeIfNeeded()
BootStorage.RootPartitionDevice = device

nil
end

# Get device containing /boot directory
# @return [String] boot device
def getBootDevice
ReadOrProposeIfNeeded()
BootStorage.BootPartitionDevice
end

# Set device containing /boot directory
# @param [String] device string boot device
def setBootDevice(device)
ReadOrProposeIfNeeded()
BootStorage.BootPartitionDevice = device

nil
end

# Set section to boot on next reboot
# @param section string section to boot
# @return [Boolean] true on success
Expand Down Expand Up @@ -1620,15 +1574,10 @@ def disableSELinuxPAM
publish :function => :getKernelParam, :type => "string (string, string)"
publish :function => :setKernelParam, :type => "boolean (string, string, string)"
publish :function => :getLoaderType, :type => "string ()"
publish :function => :getProposedDefaultSection, :type => "string ()"
publish :function => :UpdateGfxMenu, :type => "boolean ()"
publish :function => :DelDuplicatedSections, :type => "void ()"
publish :function => :ResolveSymlinksInSections, :type => "void ()"
publish :variable => :repeating_write, :type => "boolean"
publish :variable => :proposed_cfg_changed, :type => "boolean"
publish :variable => :cached_proposal, :type => "map"
publish :variable => :cached_settings, :type => "map"
publish :function => :getFunctions, :type => "map (string)"
publish :function => :blExport, :type => "map ()"
publish :function => :blImport, :type => "boolean (map)"
publish :function => :blRead, :type => "boolean (boolean, boolean)"
Expand All @@ -1642,22 +1591,15 @@ def disableSELinuxPAM
publish :function => :blWidgetMaps, :type => "map <string, map <string, any>> ()"
publish :function => :blDialogs, :type => "map <string, symbol ()> ()"
publish :function => :blFlagOnetimeBoot, :type => "boolean (string)"
publish :function => :askLocationResetPopup, :type => "boolean (string)"
publish :variable => :test_abort, :type => "boolean ()"
publish :function => :Bootloader, :type => "void ()"
publish :function => :ResetEx, :type => "void (boolean)"
publish :function => :Summary, :type => "list <string> ()"
publish :function => :UpdateConfiguration, :type => "void ()"
publish :function => :Update, :type => "boolean (map <string, any>, map <string, any>)"
publish :function => :PreUpdate, :type => "void ()"
publish :function => :WriteInstallation, :type => "boolean ()"
publish :function => :SetWriteMode, :type => "void (map <string, any>)"
publish :function => :ResolveSymlink, :type => "map <string, any> (map <string, any>, string)"
publish :function => :setLoaderType, :type => "void (string)"
publish :function => :getRootDevice, :type => "string ()"
publish :function => :setRootDevice, :type => "void (string)"
publish :function => :getBootDevice, :type => "string ()"
publish :function => :setBootDevice, :type => "void (string)"
publish :function => :RunDelayedUpdates, :type => "void ()"
publish :function => :CopyKernelInird, :type => "boolean ()"
end
Expand Down

0 comments on commit 52001d7

Please sign in to comment.