From 69ce7d958384e5304c628d79b1404984f9f43621 Mon Sep 17 00:00:00 2001 From: littleguy77 Date: Sun, 20 Jan 2013 21:37:42 -0500 Subject: [PATCH] front: Minor code simplification. --- .../android/mupen64plusae/util/AssetExtractor.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/paulscode/android/mupen64plusae/util/AssetExtractor.java b/src/paulscode/android/mupen64plusae/util/AssetExtractor.java index 6139394703..66527fc9c5 100644 --- a/src/paulscode/android/mupen64plusae/util/AssetExtractor.java +++ b/src/paulscode/android/mupen64plusae/util/AssetExtractor.java @@ -89,10 +89,7 @@ public static boolean extractAssets( AssetManager assetManager, String srcPath, { out.write( buffer, 0, read ); } - - in.close(); out.flush(); - out.close(); } catch( FileNotFoundException e ) { @@ -108,15 +105,6 @@ public static boolean extractAssets( AssetManager assetManager, String srcPath, { if( out != null ) { - try - { - out.flush(); - } - catch( IOException e ) - { - Log.e( "AssetExtractor", "Failed to flush output file " + dstPath, e ); - result = false; - } try { out.close();