Skip to content

Commit

Permalink
Remove useless propertiesRemove useless properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
636f7374 committed Oct 19, 2023
1 parent e7b2c82 commit 8488576
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/test_resolver_serialized.cr
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ options:
maximumCountOfAuthority: 128
maximumCountOfAdditional: 128
maximumDepthOfCanonicalName: 64
maximumSizeOfPerChunk: 2048
maximumSizeOfPacket: 65535
caching:
serviceMapper:
Expand Down
3 changes: 0 additions & 3 deletions serialized/options.cr
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ module DNS::Serialized
property maximumCountOfAuthority : UInt16
property maximumCountOfAdditional : UInt16
property maximumDepthOfCanonicalName : UInt8
property maximumSizeOfPerChunk : UInt16
property maximumSizeOfPacket : UInt16

def initialize
Expand All @@ -91,7 +90,6 @@ module DNS::Serialized
@maximumCountOfAuthority = 128_u16
@maximumCountOfAdditional = 128_u16
@maximumDepthOfCanonicalName = 64_u8
@maximumSizeOfPerChunk = 2048_u16
@maximumSizeOfPacket = 65535_u16
end

Expand All @@ -103,7 +101,6 @@ module DNS::Serialized
packet.maximumCountOfAuthority = maximumCountOfAuthority
packet.maximumCountOfAdditional = maximumCountOfAdditional
packet.maximumDepthOfCanonicalName = maximumDepthOfCanonicalName
packet.maximumSizeOfPerChunk = maximumSizeOfPerChunk
packet.maximumSizeOfPacket = maximumSizeOfPacket

packet
Expand Down
2 changes: 0 additions & 2 deletions src/dns/options.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ struct DNS::Options
property maximumCountOfAuthority : UInt16
property maximumCountOfAdditional : UInt16
property maximumDepthOfCanonicalName : UInt8
property maximumSizeOfPerChunk : UInt16
property maximumSizeOfPacket : UInt16

def initialize
Expand All @@ -71,7 +70,6 @@ struct DNS::Options
@maximumCountOfAuthority = 128_u16
@maximumCountOfAdditional = 128_u16
@maximumDepthOfCanonicalName = 64_u8
@maximumSizeOfPerChunk = 2048_u16
@maximumSizeOfPacket = 65535_u16
end
end
Expand Down

0 comments on commit 8488576

Please sign in to comment.