mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Removing a couple of unused things
This commit is contained in:
parent
3e3581e6bc
commit
d557516718
5 changed files with 7 additions and 30 deletions
|
@ -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
|
||||
|
||||
Fix to PR 53253. From Steve Garbarini
|
||||
|
|
|
@ -36,8 +36,6 @@ public abstract class CElement extends PlatformObject implements ICElement {
|
|||
protected int fStartLine;
|
||||
protected int fEndLine;
|
||||
|
||||
protected CElement[] empty = new CElement[0];
|
||||
|
||||
protected CElement(ICElement parent, String name, int type) {
|
||||
fParent= parent;
|
||||
fName= name;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2004-03-01 Hoda Amer
|
||||
Removing WorkingCopyManager.getWorkingCop(ITranslationUnit)
|
||||
Users should call ITranslationUnit.getSharedWorkingCopy instead.
|
||||
|
||||
2004-02-28 Alain Magloire
|
||||
|
||||
PR 51757
|
||||
|
|
|
@ -93,23 +93,6 @@ public class WorkingCopyManager implements IWorkingCopyManager, IWorkingCopyMana
|
|||
fMap.put(input, 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)
|
||||
*/
|
||||
|
|
|
@ -68,17 +68,6 @@ public interface IWorkingCopyManager {
|
|||
*/
|
||||
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
|
||||
* by this manager are destroyed.
|
||||
|
|
Loading…
Add table
Reference in a new issue