| Index: components/cronet/android/api/src/org/chromium/net/Preconditions.java
|
| diff --git a/components/cronet/android/api/src/org/chromium/net/Preconditions.java b/components/cronet/android/api/src/org/chromium/net/Preconditions.java
|
| deleted file mode 100644
|
| index 4abe9612bb8253700a3044dd97335b931a7843ca..0000000000000000000000000000000000000000
|
| --- a/components/cronet/android/api/src/org/chromium/net/Preconditions.java
|
| +++ /dev/null
|
| @@ -1,26 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -package org.chromium.net;
|
| -
|
| -import java.nio.ByteBuffer;
|
| -
|
| -/**
|
| - * {@hide only used by internal implementation.}
|
| - */
|
| -public final class Preconditions {
|
| - private Preconditions() {}
|
| -
|
| - public static void checkDirect(ByteBuffer buffer) {
|
| - if (!buffer.isDirect()) {
|
| - throw new IllegalArgumentException("byteBuffer must be a direct ByteBuffer.");
|
| - }
|
| - }
|
| -
|
| - public static void checkHasRemaining(ByteBuffer buffer) {
|
| - if (!buffer.hasRemaining()) {
|
| - throw new IllegalArgumentException("ByteBuffer is already full.");
|
| - }
|
| - }
|
| -}
|
|
|