1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Removed unused variable, use static variable to hold log tag.

This commit is contained in:
Felix Ableitner 2014-07-09 16:06:40 +02:00
parent 3719be19c0
commit 96dd7bf809

View file

@ -45,6 +45,8 @@ public class SyncthingService extends Service {
private static final String TAG = "SyncthingService";
private static final String TAG_NATIVE = "SyncthingNativeCode";
private static final int NOTIFICATION_RUNNING = 1;
/**
@ -85,10 +87,6 @@ public class SyncthingService extends Service {
private RestApi mApi;
private final ReentrantLock mNativeLogLock = new ReentrantLock();
private String mNativeLog = "";
private final SyncthingServiceBinder mBinder = new SyncthingServiceBinder(this);
/**
@ -209,10 +207,7 @@ public class SyncthingService extends Service {
String line;
try {
while ((line = br.readLine()) != null) {
mNativeLogLock.lock();
Log.i("SyncthingNativeCode", line);
mNativeLog += line + "\n";
mNativeLogLock.unlock();
Log.i(TAG_NATIVE, line);
}
}
catch (IOException e) {