mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-27 13:21:30 +00:00
Remove unused variable from SyncthingRunnable
This commit is contained in:
parent
204eb194ad
commit
e89ec17c9f
1 changed files with 1 additions and 4 deletions
|
@ -53,7 +53,6 @@ public class SyncthingRunnable implements Runnable {
|
|||
private final Context mContext;
|
||||
private final String mSyncthingBinary;
|
||||
private String[] mCommand;
|
||||
private String mErrorLog;
|
||||
private final File mLogFile;
|
||||
private final SharedPreferences mPreferences;
|
||||
|
||||
|
@ -147,7 +146,6 @@ public class SyncthingRunnable implements Runnable {
|
|||
process = pb.start();
|
||||
mSyncthing.set(process);
|
||||
|
||||
mErrorLog = "";
|
||||
Thread lInfo = log(process.getInputStream(), Log.INFO, true);
|
||||
Thread lWarn = log(process.getErrorStream(), Log.WARN, true);
|
||||
|
||||
|
@ -336,7 +334,7 @@ public class SyncthingRunnable implements Runnable {
|
|||
*
|
||||
* @param is The stream to log.
|
||||
* @param priority The priority level.
|
||||
* @param saveLog True if the log should be stored to {@link #mErrorLog}.
|
||||
* @param saveLog True if the log should be stored to {@link #mLogFile}.
|
||||
*/
|
||||
private Thread log(final InputStream is, final int priority, final boolean saveLog) {
|
||||
Thread t = new Thread(() -> {
|
||||
|
@ -348,7 +346,6 @@ public class SyncthingRunnable implements Runnable {
|
|||
Log.println(priority, TAG_NATIVE, line);
|
||||
|
||||
if (saveLog) {
|
||||
mErrorLog += line + "\n";
|
||||
Files.append(line + "\n", mLogFile, Charsets.UTF_8);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue