1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Remove unused and redundant snmp.dec function

This commit is contained in:
dmiller
2014-03-03 22:34:25 +00:00
parent d50c47d621
commit 4cef3889f1
2 changed files with 0 additions and 26 deletions

View File

@@ -255,19 +255,6 @@ ASN1Decoder = {
return pos, value
end,
---
-- Decodes an SNMP packet or a part of it according to ASN.1 basic encoding
-- rules.
-- @param encStr Encoded string.
-- @param pos Current position in the string.
-- @return The decoded value(s).
dec = function(self, encStr, pos)
local result
local _
_, result = self:decode(encStr, pos)
return result
end,
}
--- The encoder class

View File

@@ -136,19 +136,6 @@ function decode(encStr, pos)
return decoder:decode( encStr, pos )
end
---
-- Decodes an SNMP packet or a part of it according to ASN.1 basic encoding
-- rules.
-- @param encStr Encoded string.
-- @param pos Current position in the string.
-- @return The decoded value(s).
function dec(encStr, pos)
local result
local _
_, result = decode(encStr, pos)
return result
end
---
-- Create an SNMP packet.
-- @param PDU SNMP Protocol Data Unit to be encapsulated in the packet.