1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Removing a couple of unused things

This commit is contained in:
Hoda Amer 2004-03-01 21:17:08 +00:00
parent 3e3581e6bc
commit d557516718
5 changed files with 7 additions and 30 deletions

View file

@ -1,3 +1,6 @@
2004-03-01 Hoda Amer
Removing the "empty" array in the CElement that was not used anywhere !
2004-03-01 Alain Magloire 2004-03-01 Alain Magloire
Fix to PR 53253. From Steve Garbarini Fix to PR 53253. From Steve Garbarini

View file

@ -36,8 +36,6 @@ public abstract class CElement extends PlatformObject implements ICElement {
protected int fStartLine; protected int fStartLine;
protected int fEndLine; protected int fEndLine;
protected CElement[] empty = new CElement[0];
protected CElement(ICElement parent, String name, int type) { protected CElement(ICElement parent, String name, int type) {
fParent= parent; fParent= parent;
fName= name; fName= name;

View file

@ -1,3 +1,7 @@
2004-03-01 Hoda Amer
Removing WorkingCopyManager.getWorkingCop(ITranslationUnit)
Users should call ITranslationUnit.getSharedWorkingCopy instead.
2004-02-28 Alain Magloire 2004-02-28 Alain Magloire
PR 51757 PR 51757

View file

@ -93,23 +93,6 @@ public class WorkingCopyManager implements IWorkingCopyManager, IWorkingCopyMana
fMap.put(input, copy); fMap.put(input, copy);
return copy; return copy;
} }
/*
* @see org.eclipse.cdt.ui.IWorkingCopyManager#getWorkingCopy(org.eclipse.cdt.core.model.ITranslationUnit)
*/
public IWorkingCopy getWorkingCopy(ITranslationUnit unit){
if((fMap == null) || (fMap.size() == 0)){
return null;
} else {
List copies = new ArrayList(fMap.values());
Iterator i = copies.iterator();
while (i.hasNext()){
IWorkingCopy copy = (IWorkingCopy)i.next();
if(copy.getOriginalElement().equals(unit))
return copy;
}
}
return null;
}
/* /*
* @see org.eclipse.cdt.internal.ui.editor.IWorkingCopyManagerExtension#setWorkingCopy(org.eclipse.ui.IEditorInput, org.eclipse.cdt.core.model.ITranslationUnit) * @see org.eclipse.cdt.internal.ui.editor.IWorkingCopyManagerExtension#setWorkingCopy(org.eclipse.ui.IEditorInput, org.eclipse.cdt.core.model.ITranslationUnit)
*/ */

View file

@ -68,17 +68,6 @@ public interface IWorkingCopyManager {
*/ */
IWorkingCopy getWorkingCopy(IEditorInput input); IWorkingCopy getWorkingCopy(IEditorInput input);
/**
* Returns the working copy remembered for the given translation unit if one exists
* in the current list of the working copy manager
*
* @param unit : the Translation unit
* @return the working copy of the translation unit, or <code>null</code> if the
* unit was not seen by the manager before.
*
*/
IWorkingCopy getWorkingCopy(ITranslationUnit unit);
/** /**
* Shuts down this working copy manager. All working copies still remembered * Shuts down this working copy manager. All working copies still remembered
* by this manager are destroyed. * by this manager are destroyed.