File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/util Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -214,18 +214,6 @@ public static void crashMainThread(RuntimeException exception) {
214
214
});
215
215
}
216
216
217
- public static <T > int nullSafeCompare (
218
- @ Nullable T left , @ Nullable T right , Comparator <T > comparator ) {
219
- if (left != null && right != null ) {
220
- return comparator .compare (left , right );
221
- }
222
- return left == null ? (right == null ? 0 : -1 ) : 1 ;
223
- }
224
-
225
- public static <T extends Comparable <T >> int nullSafeCompare (@ Nullable T left , @ Nullable T right ) {
226
- return nullSafeCompare (left , right , Comparable ::compareTo );
227
- }
228
-
229
217
public static int compareByteArrays (byte [] left , byte [] right ) {
230
218
int size = Math .min (left .length , right .length );
231
219
for (int i = 0 ; i < size ; i ++) {
You can’t perform that action at this time.
0 commit comments