Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2014-06-04 17:52:49 +0000
committerSergey Prigogin2014-06-04 17:57:47 +0000
commitf316375507fa526907e1876da56c95170a95d658 (patch)
treeb083fff72957612eea2d11fe65ec5ab14c324b51
parent7df3a1a6884912bc83efd3f6aeb31ba09125fc6d (diff)
downloadorg.eclipse.cdt-f316375507fa526907e1876da56c95170a95d658.tar.gz
org.eclipse.cdt-f316375507fa526907e1876da56c95170a95d658.tar.xz
org.eclipse.cdt-f316375507fa526907e1876da56c95170a95d658.zip
Changed the Organize Includes default behavior to remove unused
comments. Organize Includes is mature enough for that.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludePreferences.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludePreferences.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludePreferences.java
index 6da4416bfa2..57f11d845f8 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludePreferences.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludePreferences.java
@@ -180,7 +180,7 @@ public class IncludePreferences implements Comparator<StyledInclude> {
store.setDefault(PreferenceConstants.FORWARD_DECLARE_TEMPLATES, false);
store.setDefault(PreferenceConstants.FORWARD_DECLARE_NAMESPACE_ELEMENTS, true);
store.setDefault(PreferenceConstants.INCLUDES_UNUSED_STATEMENTS_DISPOSITION,
- UnusedStatementDisposition.COMMENT_OUT.toString());
+ UnusedStatementDisposition.REMOVE.toString());
store.setDefault(PreferenceConstants.INCLUDES_HEADER_SUBSTITUTION,
HeaderSubstitutionMap.serializeMaps(GCCHeaderSubstitutionMaps.getDefaultMaps()));

Back to the top