mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
remove unused TransportOption functions
This commit is contained in:
@@ -11,7 +11,6 @@ public class TransportOption {
|
||||
|
||||
private final int drawable;
|
||||
private final @NonNull String text;
|
||||
private final @NonNull Type type;
|
||||
private final @NonNull String composeHint;
|
||||
|
||||
public TransportOption(@NonNull Type type,
|
||||
@@ -19,18 +18,13 @@ public class TransportOption {
|
||||
@NonNull String text,
|
||||
@NonNull String composeHint)
|
||||
{
|
||||
this.type = type;
|
||||
this.drawable = drawable;
|
||||
this.text = text;
|
||||
this.composeHint = composeHint;
|
||||
}
|
||||
|
||||
public @NonNull Type getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public boolean isType(Type type) {
|
||||
return this.type == type;
|
||||
return Type.NORMAL_MAIL;
|
||||
}
|
||||
|
||||
public @DrawableRes int getDrawable() {
|
||||
|
||||
@@ -88,16 +88,6 @@ public class TransportOptions {
|
||||
}
|
||||
}
|
||||
|
||||
private Optional<TransportOption> find(Type type) {
|
||||
for (TransportOption option : enabledTransports) {
|
||||
if (option.isType(type)) {
|
||||
return Optional.of(option);
|
||||
}
|
||||
}
|
||||
|
||||
return Optional.absent();
|
||||
}
|
||||
|
||||
private boolean isEnabled(TransportOption transportOption) {
|
||||
for (TransportOption option : enabledTransports) {
|
||||
if (option.equals(transportOption)) return true;
|
||||
|
||||
Reference in New Issue
Block a user