From c53ce7042bb26b9645f1e1e2573466b8b2eb5fc0 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Wed, 24 Apr 2013 12:42:26 -0700 Subject: [PATCH] Removed default ctor. --- .../core/dom/parser/cpp/CPPASTVisibilityLabel.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTVisibilityLabel.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTVisibilityLabel.java index d9847a9dfaa..71fced176a4 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTVisibilityLabel.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTVisibilityLabel.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM - Initial API and implementation + * IBM - Initial API and implementation *******************************************************************************/ package org.eclipse.cdt.internal.core.dom.parser.cpp; @@ -18,13 +18,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ASTNode; * @author jcamelon */ public class CPPASTVisibilityLabel extends ASTNode implements ICPPASTVisibilityLabel { - private int visibility; - - public CPPASTVisibilityLabel() { - } - public CPPASTVisibilityLabel(int visibility) { this.visibility = visibility; } @@ -36,12 +31,7 @@ public class CPPASTVisibilityLabel extends ASTNode implements ICPPASTVisibilityL @Override public CPPASTVisibilityLabel copy(CopyStyle style) { - CPPASTVisibilityLabel copy = new CPPASTVisibilityLabel(visibility); - copy.setOffsetAndLength(this); - if (style == CopyStyle.withLocations) { - copy.setCopyLocation(this); - } - return copy; + return copy(new CPPASTVisibilityLabel(visibility), style); } @Override