Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
lioncash committed Aug 13, 2013
1 parent 2d7244f commit e3617a5
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -33,10 +33,7 @@ private void CopyAsset(String asset, String output) {
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);
}
Expand Down Expand Up @@ -78,7 +75,6 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState == null)
{

Intent ListIntent = new Intent(this, GameListActivity.class);
startActivityForResult(ListIntent, 1);

Expand Down

0 comments on commit e3617a5

Please sign in to comment.