Remove dead code
AS picked up that the statement is always false, so the body of the if is never executed. This is indeed the case, because the constructor assigns the object which is being checked for null.
This commit is contained in:
		
							parent
							
								
									6c1b277cab
								
							
						
					
					
						commit
						ebb6d43cbb
					
				| @ -56,8 +56,6 @@ import org.fdroid.fdroid.data.Schema; | ||||
|  */ | ||||
| public class InstallConfirmActivity extends FragmentActivity implements OnCancelListener, OnClickListener { | ||||
| 
 | ||||
|     private static final int RESULT_CANNOT_PARSE = RESULT_FIRST_USER + 1; | ||||
| 
 | ||||
|     private Intent intent; | ||||
| 
 | ||||
|     private AppDiff appDiff; | ||||
| @ -196,10 +194,6 @@ public class InstallConfirmActivity extends FragmentActivity implements OnCancel | ||||
|         app = AppProvider.Helper.findByPackageName(getContentResolver(), apk.packageName); | ||||
| 
 | ||||
|         appDiff = new AppDiff(getPackageManager(), apk); | ||||
|         if (appDiff.pkgInfo == null) { | ||||
|             setResult(RESULT_CANNOT_PARSE, intent); | ||||
|             finish(); | ||||
|         } | ||||
| 
 | ||||
|         setContentView(R.layout.install_start); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Peter Serwylo
						Peter Serwylo