diff --git a/Session/Utilities/BackgroundPoller.swift b/Session/Utilities/BackgroundPoller.swift index 78f26743e..7ab31d811 100644 --- a/Session/Utilities/BackgroundPoller.swift +++ b/Session/Utilities/BackgroundPoller.swift @@ -37,10 +37,6 @@ public final class BackgroundPoller : NSObject { } private static func getMessages(for publicKey: String, isClosedGroup: Bool = false) -> Promise { - func handleRawMessages(rawResponse: Any) -> [Promise] { - - } - return SnodeAPI.getSwarm(for: publicKey).then(on: DispatchQueue.main) { swarm -> Promise in guard let snode = swarm.randomElement() else { throw SnodeAPI.Error.generic } return attempt(maxRetryCount: 4, recoveringOn: DispatchQueue.main) {