javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/midp2/install/steps/ConfirmInstallation.java
changeset 78 71ad690e91f5
parent 67 63b81d807542
--- a/javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/midp2/install/steps/ConfirmInstallation.java	Fri Sep 17 16:44:34 2010 +0300
+++ b/javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/midp2/install/steps/ConfirmInstallation.java	Mon Oct 04 11:29:25 2010 +0300
@@ -211,7 +211,6 @@
 
         // Now that user has answered to confirmation dialog, take into
         // use user selections: driveId and retainData.
-        int oldInstallationDrive = ball.iInstallationDrive;
         ball.iInstallationDrive = installInfo.getDriveId();
         if (ball.iUpgradeData == null)
         {
@@ -221,23 +220,6 @@
         Log.log("UserConfirmation: " + ball.iUserConfirmation);
         Log.log("InstallationDrive: " + ball.iInstallationDrive);
         Log.log("UpgradeData: " + ball.iUpgradeData);
-        if (oldInstallationDrive != ball.iInstallationDrive)
-        {
-            try
-            {
-                // Save user selection.
-                SysUtil.setRepositoryStringValue(
-                    SysUtil.REPO_ID_JAVA_INST_VARIATION,
-                    SysUtil.REPO_KEY_JAVA_INST_DEF_INST_DRIVE,
-                    FileUtils.getDriveName(ball.iInstallationDrive));
-                Log.log("Updated user chosen drive to repository: " +
-                        ball.iInstallationDrive);
-            }
-            catch (Throwable t)
-            {
-                Log.log("Updating user chosen drive to repository failed", t);
-            }
-        }
 
         // Log all suite info.
         //ball.log(ball.iSuite.toString());