mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
bug 303095: Remove deprecated IOption.overridesOnlyValue()
This commit is contained in:
parent
135c85133a
commit
c1165cf212
3 changed files with 1 additions and 42 deletions
|
@ -453,15 +453,6 @@ public interface IOption extends IBuildObject {
|
|||
*/
|
||||
public boolean isExtensionElement();
|
||||
|
||||
/**
|
||||
* @return <code>true</code> if this option only overrides the value attribute
|
||||
* of its superclass and <code>false</code> if it overrides other attributes.
|
||||
*
|
||||
* @deprecated as of 3.0.1
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean overridesOnlyValue();
|
||||
|
||||
/**
|
||||
* @return <code>true</code> if this option is valid and <code>false</code>
|
||||
* if the option cannot be safely used due to an error in the MBS grammar.
|
||||
|
|
|
@ -1979,32 +1979,6 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
|||
return isExtensionOption;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.managedbuilder.core.IOption#overridesOnlyValue()
|
||||
* Deprecated since 3.0.1
|
||||
*/
|
||||
public boolean overridesOnlyValue() {
|
||||
if (superClass != null &&
|
||||
unusedChildren == null &&
|
||||
browseType == null &&
|
||||
browseFilterExtensions == null &&
|
||||
(builtIns == null || builtIns.size() == 0) &&
|
||||
category == null &&
|
||||
categoryId == null &&
|
||||
command == null &&
|
||||
commandFalse == null &&
|
||||
tip == null &&
|
||||
contextId == null &&
|
||||
enumList == null &&
|
||||
enumCommands == null &&
|
||||
enumNames == null &&
|
||||
defaultValue == null) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.managedbuilder.core.IOption#isDirty()
|
||||
*/
|
||||
|
|
|
@ -741,13 +741,7 @@ public class OptionReference implements IOption {
|
|||
public boolean isExtensionElement() {
|
||||
return false;
|
||||
}
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.managedbuilder.core.IOption#overridesOnlyValue()
|
||||
*/
|
||||
public boolean overridesOnlyValue() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* Sets the raw value.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue