From e4f106dc0bff7096e30ea502f74762743e3b53ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Naz=C3=A1rio=20Coelho?= Date: Sun, 4 Aug 2019 09:37:43 -0300 Subject: [PATCH] Removing Shall Drop to another PR --- neo/Network/P2P/TaskManager.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/neo/Network/P2P/TaskManager.cs b/neo/Network/P2P/TaskManager.cs index f66744e92e..639603816d 100644 --- a/neo/Network/P2P/TaskManager.cs +++ b/neo/Network/P2P/TaskManager.cs @@ -5,7 +5,6 @@ using Neo.Ledger; using Neo.Network.P2P.Payloads; using System; -using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; @@ -277,13 +276,5 @@ internal protected override bool IsHighPriority(object message) return false; } } - - internal protected override bool ShallDrop(object message, IEnumerable queue) - { - if (!(message is TaskManager.NewTasks tasks)) return false; - // Remove duplicate tasks - if (queue.OfType().Any(x => x.Payload.Type == tasks.Payload.Type && x.Payload.Hashes.SequenceEqual(tasks.Payload.Hashes))) return true; - return false; - } } }