summaryrefslogtreecommitdiff
path: root/core/java/android/os/ShellCommand.java
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2015-11-09 15:36:43 +0000
committerTodd Kennedy <toddke@google.com>2015-11-09 15:36:43 +0000
commit18bc3305e43a040018add48c97cfbc7b3d9ecf7c (patch)
treeb197aa8db1111391d607eea953a1c397d66ae8ee /core/java/android/os/ShellCommand.java
parentec059d839de6d061085dcfd85ce6565dcf4d5b69 (diff)
Revert "Move 'un/install' to cmd"
This reverts commit ec059d839de6d061085dcfd85ce6565dcf4d5b69. Change-Id: Ieaa1373e96fb4cc20aa41c3159518bd9e86c572b
Diffstat (limited to 'core/java/android/os/ShellCommand.java')
-rw-r--r--core/java/android/os/ShellCommand.java11
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.