Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2017-02-06 00:47:04 +0000
committerGerrit Code Review @ Eclipse.org2017-02-06 02:23:41 +0000
commit0b641f12168b430a8481d51ae950f0971fe47bf4 (patch)
treec768115fd4b96f9d889856b2f0a0c95cbf1646fd /lrparser
parentbd5cec12a8c0bb11a801a4336371fd2d888a1783 (diff)
downloadorg.eclipse.cdt-0b641f12168b430a8481d51ae950f0971fe47bf4.tar.gz
org.eclipse.cdt-0b641f12168b430a8481d51ae950f0971fe47bf4.tar.xz
org.eclipse.cdt-0b641f12168b430a8481d51ae950f0971fe47bf4.zip
Removed obsolete code.
Diffstat (limited to 'lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRDOMLocationInclusionTests.java72
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRParserTestSuite.java1
2 files changed, 0 insertions, 73 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRDOMLocationInclusionTests.java b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRDOMLocationInclusionTests.java
deleted file mode 100644
index 9ce5a543597..00000000000
--- a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRDOMLocationInclusionTests.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2009 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.cdt.core.lrparser.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
-import org.eclipse.cdt.core.dom.lrparser.gnu.GCCLanguage;
-import org.eclipse.cdt.core.dom.lrparser.gnu.GPPLanguage;
-import org.eclipse.cdt.core.model.ILanguage;
-import org.eclipse.cdt.core.parser.CodeReader;
-import org.eclipse.cdt.core.parser.ExtendedScannerInfo;
-import org.eclipse.cdt.core.parser.IScannerInfo;
-import org.eclipse.cdt.core.parser.ParserUtil;
-import org.eclipse.cdt.core.parser.tests.ast2.DOMLocationInclusionTests;
-import org.eclipse.cdt.internal.core.dom.SavedCodeReaderFactory;
-import org.eclipse.core.resources.IFile;
-
-@SuppressWarnings("restriction")
-public class LRDOMLocationInclusionTests extends DOMLocationInclusionTests {
-
- public static TestSuite suite() {
- return new TestSuite(LRDOMLocationInclusionTests.class);
- }
-
- public LRDOMLocationInclusionTests() {
- }
-
- public LRDOMLocationInclusionTests(String name, Class<Object> className) {
- super(name, className);
- }
-
- public LRDOMLocationInclusionTests(String name) {
- super(name);
- }
-
- @Override
- protected IASTTranslationUnit parse(IFile code, IScannerInfo s)throws Exception {
- // TODO: total freakin hack! the test suite needs to be refactored
- ILanguage lang = code.getName().endsWith("cc") ? getCPPLanguage() : getCLanguage(); //$NON-NLS-1$
-
- CodeReader codeReader = new CodeReader(code.getLocation().toOSString());
- IASTTranslationUnit tu = lang.getASTTranslationUnit(codeReader, s, SavedCodeReaderFactory.getInstance(), null, ILanguage.OPTION_ADD_COMMENTS, ParserUtil.getParserLogService());
-
- return tu;
- }
-
- @Override
- protected IASTTranslationUnit parse(IFile code) throws Exception {
-
- return parse(code, new ExtendedScannerInfo());
- }
-
-
- protected ILanguage getCLanguage() {
- return GCCLanguage.getDefault();
- }
-
- protected ILanguage getCPPLanguage() {
- return GPPLanguage.getDefault();
- }
-
-
-}
diff --git a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRParserTestSuite.java b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRParserTestSuite.java
index bcbc5e371c8..48a614d9ad4 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRParserTestSuite.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRParserTestSuite.java
@@ -37,7 +37,6 @@ public class LRParserTestSuite extends TestSuite {
addTest(LRCPPTests.suite());
addTest(LRCSpecTests.suite()); // a couple of failures
addTest(LRDigraphTrigraphTests.suite());
- addTest(LRDOMLocationInclusionTests.suite());
addTest(LRDOMLocationMacroTests.suite());
addTest(LRDOMLocationTests.suite());
addTest(LRDOMPreprocessorInformationTest.suite());

Back to the top