Skip to content

Commit

Permalink
Dropped unused ValidateNetmask
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Nov 23, 2018
1 parent e46abd8 commit 7ff5b20
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/include/network/lan/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -982,20 +982,6 @@ def ValidateAddrIP(key, event)
true
end

# Validator for network masks adresses
# @param [String] key the widget being validated
# @param [Hash] event the event being handled
# @return whether valid
def ValidateNetmask(key, _event)
# TODO: general CWM improvement idea: validate and save only nondisabled
# widgets
if UI.QueryWidget(:bootproto, :CurrentButton) == :static
ipa = Convert.to_string(UI.QueryWidget(Id(key), :Value))
return Netmask.Check(ipa)
end
true
end

# Validator for ifcfg names
# @param [String] key the widget being validated
# @param [Hash] event the event being handled
Expand Down

0 comments on commit 7ff5b20

Please sign in to comment.