diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-08-13 08:58:50 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-08-13 08:58:50 -0400 |
| commit | e3617a55a01d05a7dde37dfc37e662bfd91f42de (patch) | |
| tree | 050bb7ee5be4fd3e6fe52ca8b6a3ce4de7253730 /Source/Android/src | |
| parent | 2d7244f6d51b6cdecd6d4dc14ae6a6786b883d58 (diff) | |
[Android] Clean up the function CopyAsset in DolphinEmulator.java.
[streamtype].flush() is called when [streamtype].close() is called.
No need to null the references either after calling close(), the garbage collection will take care of it.
Diffstat (limited to 'Source/Android/src')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java b/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java index fefb13ec14..cf2ad33e4f 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java @@ -33,10 +33,7 @@ public class DolphinEmulator<MainActivity> extends Activity out = new FileOutputStream(output); copyFile(in, out); in.close(); - in = null; - out.flush(); out.close(); - out = null; } catch(IOException e) { Log.e("DolphinEmulator", "Failed to copy asset file: " + asset, e); } @@ -78,7 +75,6 @@ public class DolphinEmulator<MainActivity> extends Activity super.onCreate(savedInstanceState); if (savedInstanceState == null) { - Intent ListIntent = new Intent(this, GameListActivity.class); startActivityForResult(ListIntent, 1); |
