From 8488576c6b8ee21f4018459dc2db83c9438452fe Mon Sep 17 00:00:00 2001 From: _ <53088156+636f7374@users.noreply.github.com> Date: Fri, 20 Oct 2023 07:22:00 +0800 Subject: [PATCH] Remove useless propertiesRemove useless properties. --- examples/test_resolver_serialized.cr | 1 - serialized/options.cr | 3 --- src/dns/options.cr | 2 -- 3 files changed, 6 deletions(-) diff --git a/examples/test_resolver_serialized.cr b/examples/test_resolver_serialized.cr index ee16894..59292ce 100644 --- a/examples/test_resolver_serialized.cr +++ b/examples/test_resolver_serialized.cr @@ -96,7 +96,6 @@ options: maximumCountOfAuthority: 128 maximumCountOfAdditional: 128 maximumDepthOfCanonicalName: 64 - maximumSizeOfPerChunk: 2048 maximumSizeOfPacket: 65535 caching: serviceMapper: diff --git a/serialized/options.cr b/serialized/options.cr index ad131ed..05f1345 100644 --- a/serialized/options.cr +++ b/serialized/options.cr @@ -82,7 +82,6 @@ module DNS::Serialized property maximumCountOfAuthority : UInt16 property maximumCountOfAdditional : UInt16 property maximumDepthOfCanonicalName : UInt8 - property maximumSizeOfPerChunk : UInt16 property maximumSizeOfPacket : UInt16 def initialize @@ -91,7 +90,6 @@ module DNS::Serialized @maximumCountOfAuthority = 128_u16 @maximumCountOfAdditional = 128_u16 @maximumDepthOfCanonicalName = 64_u8 - @maximumSizeOfPerChunk = 2048_u16 @maximumSizeOfPacket = 65535_u16 end @@ -103,7 +101,6 @@ module DNS::Serialized packet.maximumCountOfAuthority = maximumCountOfAuthority packet.maximumCountOfAdditional = maximumCountOfAdditional packet.maximumDepthOfCanonicalName = maximumDepthOfCanonicalName - packet.maximumSizeOfPerChunk = maximumSizeOfPerChunk packet.maximumSizeOfPacket = maximumSizeOfPacket packet diff --git a/src/dns/options.cr b/src/dns/options.cr index 01660ff..37a3951 100644 --- a/src/dns/options.cr +++ b/src/dns/options.cr @@ -62,7 +62,6 @@ struct DNS::Options property maximumCountOfAuthority : UInt16 property maximumCountOfAdditional : UInt16 property maximumDepthOfCanonicalName : UInt8 - property maximumSizeOfPerChunk : UInt16 property maximumSizeOfPacket : UInt16 def initialize @@ -71,7 +70,6 @@ struct DNS::Options @maximumCountOfAuthority = 128_u16 @maximumCountOfAdditional = 128_u16 @maximumDepthOfCanonicalName = 64_u8 - @maximumSizeOfPerChunk = 2048_u16 @maximumSizeOfPacket = 65535_u16 end end