Skip to content

Commit

Permalink
Removed unused APIs: NetworkInterfaces#Push, #Pop
Browse files Browse the repository at this point in the history
and a #publish for a method removed earlier
  • Loading branch information
mvidner committed Nov 6, 2017
1 parent 7ed50a2 commit b6750fd
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions library/network/src/modules/NetworkInterfaces.rb
Expand Up @@ -147,9 +147,6 @@ def main
# @see #FastestRegexps
@FastestTypes = { 1 => "dsl", 2 => "isdn", 3 => "modem", 4 => "netcard" }

# @see #Push
@stack = {}

# -------------------- components of configuration names --------------------

# ifcfg name = type + id + alias_id
Expand Down Expand Up @@ -1771,28 +1768,6 @@ def FastestType(name)
ret
end

# DSL needs to save its config while the underlying network card is
# being configured.
def Push
Builtins.y2error("Stack not empty: %1", @stack) if @stack != {}
Ops.set(@stack, "Name", @Name)
Ops.set(@stack, "Current", @Current)
Ops.set(@stack, "operation", @operation)
Builtins.y2milestone("PUSH: %1", @stack)

nil
end

def Pop
Builtins.y2milestone("POP: %1", @stack)
@Name = Ops.get_string(@stack, "Name", "")
@Current = Ops.get_map(@stack, "Current", {})
@operation = Ops.get_symbol(@stack, "operation")
@stack = {}

nil
end

# #46803: forbid "/" (filename), maybe also "-" (separator) "_" (escape)
def ValidCharsIfcfg
String.ValidCharsFilename
Expand Down Expand Up @@ -1843,13 +1818,10 @@ def ListDevicesExcept(dev)
publish function: :SetValue, type: "boolean (string, string, string)"
publish function: :GetIP, type: "list <string> (string)"
publish function: :Locate, type: "list <string> (string, string)"
publish function: :UpdateModemSymlink, type: "boolean ()"
publish function: :CleanHotplugSymlink, type: "boolean ()"
publish function: :List, type: "list <string> (string)"
publish function: :Fastest, type: "string ()"
publish function: :FastestType, type: "string (string)"
publish function: :Push, type: "void ()"
publish function: :Pop, type: "void ()"
publish function: :ValidCharsIfcfg, type: "string ()"
publish function: :ListDevicesExcept, type: "list <string> (string)"
end
Expand Down

0 comments on commit b6750fd

Please sign in to comment.