Skip to content

Commit 92f523c

Browse files
committed
Clean up stale code
last seen: e210fc5
1 parent cc71db2 commit 92f523c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

dnscrypt-proxy/plugins.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ func (pluginsState *PluginsState) ApplyQueryPlugins(
337337
func (pluginsState *PluginsState) ApplyResponsePlugins(
338338
pluginsGlobals *PluginsGlobals,
339339
packet []byte,
340-
ttl *uint32,
341340
) ([]byte, error) {
342341
msg := dns.Msg{Compress: true}
343342
if err := msg.Unpack(packet); err != nil {
@@ -379,9 +378,6 @@ func (pluginsState *PluginsState) ApplyResponsePlugins(
379378
break
380379
}
381380
}
382-
if ttl != nil {
383-
setMaxTTL(&msg, *ttl)
384-
}
385381
packet2, err := msg.PackBuffer(packet)
386382
if err != nil {
387383
return packet, err

dnscrypt-proxy/query_processing.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ func processPlugins(
254254
serverInfo *ServerInfo,
255255
response []byte,
256256
) ([]byte, error) {
257-
var ttl *uint32
258257
var err error
259258

260-
response, err = pluginsState.ApplyResponsePlugins(&proxy.pluginsGlobals, response, ttl)
259+
response, err = pluginsState.ApplyResponsePlugins(&proxy.pluginsGlobals, response)
261260
if err != nil {
262261
pluginsState.returnCode = PluginsReturnCodeParseError
263262
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)

0 commit comments

Comments
 (0)