minor clean

This commit is contained in:
Ryan ZHAO 2021-02-01 13:49:17 +11:00
parent c7af1cabe3
commit 058edbdfba
3 changed files with 1 additions and 15 deletions

View File

@ -86,7 +86,7 @@ public class KeyHelper {
start--; start--;
for (int i=0;i<count;i++) { for (int i=0;i<count;i++) {
results.add(new PreKeyRecord(((start + i) % (Medium.MAX_VALUE-1)) + 1, Curve.generateKeyPair())); results.add(new PreKeyRecord(((start + i) % (0xFFFFFF-1)) + 1, Curve.generateKeyPair()));
} }
return results; return results;

View File

@ -1,10 +0,0 @@
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.session.libsignal.libsignal.util;
public class Medium {
public static int MAX_VALUE = 0xFFFFFF;
}

View File

@ -16,10 +16,6 @@
package org.session.libsignal.libsignal.util.guava; package org.session.libsignal.libsignal.util.guava;
import org.session.libsignal.libsignal.util.guava.Function;
import org.session.libsignal.libsignal.util.guava.Optional;
import org.session.libsignal.libsignal.util.guava.Supplier;
import static org.session.libsignal.libsignal.util.guava.Preconditions.checkNotNull; import static org.session.libsignal.libsignal.util.guava.Preconditions.checkNotNull;
import java.util.Collections; import java.util.Collections;