From 57825d58b5df699f2b621f67df662a7644e19689 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 5 Jun 2019 16:24:15 +1000 Subject: [PATCH] Remove unnecessary getter and setter --- src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt | 1 - src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt b/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt index 0e1181e67c..8c27232126 100644 --- a/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt @@ -22,7 +22,6 @@ import org.whispersystems.signalservice.loki.utilities.hexEncodedPublicKey import java.io.File import java.io.FileOutputStream - class KeyPairActivity : BaseActionBarActivity() { private lateinit var languageFileDirectory: File private var keyPair: IdentityKeyPair? = null diff --git a/src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java b/src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java index 541f05510e..f484f076db 100644 --- a/src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java +++ b/src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java @@ -9,7 +9,7 @@ public class OutgoingTextMessage { private final String message; private final int subscriptionId; private final long expiresIn; - private boolean isFriendRequest = false; + boolean isFriendRequest = false; public OutgoingTextMessage(Recipient recipient, String message, int subscriptionId) { this(recipient, message, 0, subscriptionId); @@ -69,9 +69,6 @@ public class OutgoingTextMessage { return false; } - public boolean isFriendRequest() { return isFriendRequest; } - public void setIsFriendRequest(boolean value) { this.isFriendRequest = value; } - public static OutgoingTextMessage from(SmsMessageRecord record) { if (record.isSecure()) { return new OutgoingEncryptedMessage(record.getRecipient(), record.getBody(), record.getExpiresIn());