From c1e775df38a76c1ccf7c78e3c1e3510525ac08c2 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Wed, 14 Dec 2011 00:52:24 -0800 Subject: [PATCH] Deleted an unused class. --- .../core/dom/parser/EmptyCodeReaderCache.java | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/EmptyCodeReaderCache.java diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/EmptyCodeReaderCache.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/EmptyCodeReaderCache.java deleted file mode 100644 index 4571218c648..00000000000 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/EmptyCodeReaderCache.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 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.internal.core.dom.parser; - -import java.io.IOException; - -import org.eclipse.cdt.core.index.IIndexFileLocation; -import org.eclipse.cdt.core.parser.CodeReader; -import org.eclipse.cdt.core.parser.ICodeReaderCache; -import org.eclipse.cdt.internal.core.parser.InternalParserUtil; -import org.eclipse.core.runtime.CoreException; - -/** - * This is an empty implementation of the ICodeReaderCache interface. It is used to implement a - * cache for the interface that isn't actually a cache, but rather always creates new CodeReaders - * every time a CodeReader is retrieved. - * - * This cache is not optimized to be run from within Eclipse (i.e. it ignores IResources). - * @deprecated - */ -@Deprecated -public class EmptyCodeReaderCache implements ICodeReaderCache { - - /** - * Creates a new CodeReader for the given file location. - */ - public CodeReader get(String location) { - try { - return new CodeReader(location); - } catch (IOException e) { - } - return null; - } - - public CodeReader get(String key, IIndexFileLocation ifl) throws CoreException, IOException { - return InternalParserUtil.createCodeReader(ifl, null); - } - - /** - * Returns null. - */ - public CodeReader remove(String key) { - return null; - } - - /** - * Returns 0. - */ - public int getCurrentSpace() { - return 0; - } - - public void flush() { - // nothing to do - - } -}