From 592206c5a1f1e8b4c1a8e032c806afa18f203f4b Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Sun, 1 Dec 2024 12:32:50 -0800 Subject: [PATCH] remove logs --- .../src/main/java/org/xmtp/android/library/Client.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/library/src/main/java/org/xmtp/android/library/Client.kt b/library/src/main/java/org/xmtp/android/library/Client.kt index ecae0d38..3f9c04e1 100644 --- a/library/src/main/java/org/xmtp/android/library/Client.kt +++ b/library/src/main/java/org/xmtp/android/library/Client.kt @@ -63,20 +63,14 @@ class Client() { } suspend fun getOrCreateInboxId(environment: ClientOptions.Api, address: String): String { - val start = Date() var inboxId = getInboxIdForAddress( logger = XMTPLogger(), host = environment.env.getUrl(), isSecure = environment.isSecure, accountAddress = address.lowercase() ) - val end = Date() - Log.d("PERF", "Get inboxId in ${(end.time - start.time) / 1000.0}s") if (inboxId.isNullOrBlank()) { - val start2 = Date() inboxId = generateInboxId(address.lowercase(), 0.toULong()) - val end2 = Date() - Log.d("PERF", "Create inboxId in ${(end2.time - start2.time) / 1000.0}s") } return inboxId } @@ -111,10 +105,7 @@ class Client() { signingKey: SigningKey? = null, ): Client { val accountAddress = address.lowercase() - val start2 = Date() val inboxId = generateInboxId(address.lowercase(), 0.toULong()) - val end2 = Date() - Log.d("PERF", "Create inboxId in ${(end2.time - start2.time) / 1000.0}s") val (ffiClient, dbPath) = createFfiClient( accountAddress, @@ -176,7 +167,6 @@ class Client() { directoryFile.mkdir() dbPath = directoryFile.absolutePath + "/$alias.db3" - val start = Date() val ffiClient = createClient( logger = logger, host = options.api.env.getUrl(), @@ -189,8 +179,6 @@ class Client() { legacySignedPrivateKeyProto = null, historySyncUrl = options.historySyncUrl ) - val end = Date() - Log.d("PERF", "Create ffi client in ${(end.time - start.time) / 1000.0}s") options.preAuthenticateToInboxCallback?.let { runBlocking {