diff options
| author | Guang Zhu <guangzhu@google.com> | 2015-11-09 18:10:54 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-11-09 18:10:54 +0000 |
| commit | f49bec047a69859190c8331b46eb454d88521420 (patch) | |
| tree | 6aaf4f7a7a1dca1fb694261f96522e7f34d5e8be /core/java/android/os/ShellCommand.java | |
| parent | b226c1538b09e8ff5bdcf27bfa91b913b9de6a4e (diff) | |
| parent | 18bc3305e43a040018add48c97cfbc7b3d9ecf7c (diff) | |
Merge "Revert "Move 'un/install' to cmd""
Diffstat (limited to 'core/java/android/os/ShellCommand.java')
| -rw-r--r-- | core/java/android/os/ShellCommand.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/java/android/os/ShellCommand.java b/core/java/android/os/ShellCommand.java index cad482b6bab9..73c2c804bdf1 100644 --- a/core/java/android/os/ShellCommand.java +++ b/core/java/android/os/ShellCommand.java @@ -19,11 +19,8 @@ package android.os; import android.util.Slog; import com.android.internal.util.FastPrintWriter; -import java.io.BufferedInputStream; import java.io.FileDescriptor; -import java.io.FileInputStream; import java.io.FileOutputStream; -import java.io.InputStream; import java.io.PrintWriter; /** @@ -46,7 +43,6 @@ public abstract class ShellCommand { private FastPrintWriter mOutPrintWriter; private FastPrintWriter mErrPrintWriter; - private InputStream mInputStream; public int exec(Binder target, FileDescriptor in, FileDescriptor out, FileDescriptor err, String[] args, ResultReceiver resultReceiver) { @@ -115,13 +111,6 @@ public abstract class ShellCommand { return mErrPrintWriter; } - public InputStream getInputStream() { - if (mInputStream == null) { - mInputStream = new BufferedInputStream(new FileInputStream(mIn)); - } - return mInputStream; - } - /** * Return the next option on the command line -- that is an argument that * starts with '-'. If the next argument is not an option, null is returned. |
