Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated method aliases #184

Merged
merged 1 commit into from
Dec 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions lib/nexpose/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ def include_ip_range(from, to)
end
end

# @deprecated Use {#include_ip_range} instead.
def add_ip_range(from, to)
warn "[DEPRECATED] Use #{self.class}#include_ip_range instead of #{self.class}#add_ip_range."
include_ip_range(from, to)
end

# Remove assets to this site by IP address range.
#
# @param [String] from Beginning IP address of a range.
Expand All @@ -274,12 +268,6 @@ def remove_included_ip_range(from, to)
end
end

# @deprecated Use {#remove_included_ip_range} instead.
def remove_ip_range(from, to)
warn "[DEPRECATED] Use #{self.class}#remove_included_ip_range instead of #{self.class}#remove_ip_range."
remove_included_ip_range(from, to)
end

# Adds an asset to this site included scan targets, resolving whether an IP or hostname is
# provided.
#
Expand All @@ -289,15 +277,6 @@ def include_asset(asset)
@included_scan_targets[:addresses] << HostOrIP.convert(asset)
end

# @deprecated Use {#include_asset} instead.
def add_asset(asset)
warn "[DEPRECATED] Use #{self.class}#include_asset instead of #{self.class}#add_asset."
include_asset(asset)
end

alias_method :add_host, :add_asset
alias_method :add_ip, :add_asset

# Remove an asset to this site included scan targets, resolving whether an IP or hostname is
# provided.
#
Expand All @@ -307,15 +286,6 @@ def remove_included_asset(asset)
@included_scan_targets[:addresses].reject! { |existing_asset| existing_asset == HostOrIP.convert(asset) }
end

# @deprecated Use {#remove_included_asset} instead.
def remove_asset(asset)
warn "[DEPRECATED] Use #{self.class}#remove_included_asset instead of #{self.class}#remove_asset."
remove_included_asset(asset)
end

alias_method :remove_host, :remove_asset
alias_method :remove_ip, :remove_asset

# Adds assets to this site excluded scan targets by IP address range.
#
# @param [String] from Beginning IP address of a range.
Expand Down