@@ -861,43 +861,6 @@ public static String resolveEnvVariable(String path)
861861 return resolvedPath .toString ();
862862
863863 }
864-
865- public static Map <String , String > getSystemEnv ()
866- {
867- Map <String , String > env = new HashMap <>(System .getenv ());
868-
869- String idfToolsPath = Platform .getPreferencesService ().getString (IDFCorePlugin .PLUGIN_ID ,
870- IDFCorePreferenceConstants .IDF_TOOLS_PATH , IDFCorePreferenceConstants .IDF_TOOLS_PATH_DEFAULT , null );
871- env .put (IDFCorePreferenceConstants .IDF_TOOLS_PATH , idfToolsPath );
872-
873- // Merge Homebrew bin paths into PATH
874- String existingPath = env .getOrDefault ("PATH" , "" ); //$NON-NLS-1$ //$NON-NLS-2$
875- StringBuilder newPath = new StringBuilder ();
876-
877- String [] brewPaths = { "/usr/local/bin" , "/opt/homebrew/bin" }; //$NON-NLS-1$ //$NON-NLS-2$
878-
879- for (String brewPath : brewPaths )
880- {
881- if (Files .exists (Paths .get (brewPath )) && !existingPath .contains (brewPath ))
882- {
883- newPath .append (brewPath ).append (":" ); //$NON-NLS-1$
884- }
885- }
886-
887- // Append the original PATH at the end
888- newPath .append (existingPath );
889- env .put ("PATH" , newPath .toString ()); //$NON-NLS-1$
890-
891- return env ;
892- }
893-
894- public static String getIDFToolsPathFromPreferences ()
895- {
896- String idfToolsPath = Platform .getPreferencesService ().getString (IDFCorePlugin .PLUGIN_ID ,
897- IDFCorePreferenceConstants .IDF_TOOLS_PATH , IDFCorePreferenceConstants .IDF_TOOLS_PATH_DEFAULT , null );
898- return idfToolsPath ;
899- }
900-
901864
902865 public static void closeWelcomePage (IWorkbenchWindow activeww )
903866 {
0 commit comments