aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-08-23 15:56:30 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-08-23 15:56:30 +0200
commitee9872277dd83e3109633bd7b59a962555e663b5 (patch)
treedcb85a0d262428a826bd18ce284c6a33ad94ed59 /src/eu/siacs/conversations/xmpp
parent26d6835927042651e04e1f46d617b6ea34fab6d1 (diff)
removed server compat value in favor of a (small xep list)
Diffstat (limited to 'src/eu/siacs/conversations/xmpp')
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index c3d70f3b..ba7a9245 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -919,42 +919,6 @@ public class XmppConnection implements Runnable {
public boolean compression() {
return connection.usingCompression;
}
-
- public int getCompatibility() {
- int hit = 0;
- int miss = 0;
- if (carbons()) {
- ++hit;
- } else {
- ++miss;
- }
- if (sm()) {
- ++hit;
- } else {
- ++miss;
- }
- if (pubsub()) {
- ++hit;
- } else {
- ++miss;
- }
- if (streamhost()) {
- ++hit;
- } else {
- ++miss;
- }
- if (compression()) {
- ++hit;
- } else {
- ++miss;
- }
- if (rosterVersioning()) {
- ++hit;
- } else {
- ++miss;
- }
- return (int) (((float) hit) / (hit + miss) * 100);
- }
}
public long getLastSessionEstablished() {