From a11960d92a477cb23f59d30a110089775d4b0a63 Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Sun, 16 Oct 2022 23:17:08 +0200
Subject: [PATCH] Clean up unused code

---
 .../Messenger/Functions/MessengerSendFileTests.swift           | 2 --
 .../Messenger/Functions/MessengerStartFileTransferTests.swift  | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/Tests/XXMessengerClientTests/Messenger/Functions/MessengerSendFileTests.swift b/Tests/XXMessengerClientTests/Messenger/Functions/MessengerSendFileTests.swift
index 5ea8410d..4e1c1763 100644
--- a/Tests/XXMessengerClientTests/Messenger/Functions/MessengerSendFileTests.swift
+++ b/Tests/XXMessengerClientTests/Messenger/Functions/MessengerSendFileTests.swift
@@ -5,8 +5,6 @@ import XXClient
 
 final class MessengerSendFileTests: XCTestCase {
   func testSendFile() throws {
-    let e2eFileTransferParams = "e2eFileTransferParams".data(using: .utf8)!
-    let fileTransferParams = "fileTransferParams".data(using: .utf8)!
     let newTransferId = "transferId".data(using: .utf8)!
 
     var didSendFile: [FileTransferSend.Params] = []
diff --git a/Tests/XXMessengerClientTests/Messenger/Functions/MessengerStartFileTransferTests.swift b/Tests/XXMessengerClientTests/Messenger/Functions/MessengerStartFileTransferTests.swift
index 56195f23..5164700f 100644
--- a/Tests/XXMessengerClientTests/Messenger/Functions/MessengerStartFileTransferTests.swift
+++ b/Tests/XXMessengerClientTests/Messenger/Functions/MessengerStartFileTransferTests.swift
@@ -28,8 +28,7 @@ final class MessengerStartFileTransferTests: XCTestCase {
     env.initFileTransfer.run = { params, callback in
       didInitFileTransfer.append(params)
       receiveFileCallback = callback
-      var fileTransfer: FileTransfer = .unimplemented
-      return fileTransfer
+      return .unimplemented
     }
     env.fileTransfer.set = {
       didSetFileTransfer.append($0)
-- 
GitLab