refactor: remove various leftover unused or deprecated code (#11091)
This commit is contained in:

committed by
Victor Berchet

parent
0cf5ece7f8
commit
4d7d2a2daa
@ -442,8 +442,6 @@ export class CompileDirectiveMetadata implements CompileMetadataWithIdentifier {
|
||||
hostProperties[matches[1]] = value;
|
||||
} else if (isPresent(matches[2])) {
|
||||
hostListeners[matches[2]] = value;
|
||||
} else if (isPresent(matches[3])) { // DEPRECATED: remove this if statement post RC5
|
||||
hostProperties['@' + matches[3]] = value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -57,10 +57,6 @@ export class Token {
|
||||
|
||||
isKeyword(): boolean { return this.type == TokenType.Keyword; }
|
||||
|
||||
isKeywordDeprecatedVar(): boolean {
|
||||
return this.type == TokenType.Keyword && this.strValue == 'var';
|
||||
}
|
||||
|
||||
isKeywordLet(): boolean { return this.type == TokenType.Keyword && this.strValue == 'let'; }
|
||||
|
||||
isKeywordNull(): boolean { return this.type == TokenType.Keyword && this.strValue == 'null'; }
|
||||
@ -392,4 +388,4 @@ function unescape(code: number): number {
|
||||
default:
|
||||
return code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -821,12 +821,6 @@ class TemplateParseVisitor implements html.Visitor {
|
||||
boundPropertyName = partValue.substr(1);
|
||||
bindingType = PropertyBindingType.Animation;
|
||||
securityContext = SecurityContext.NONE;
|
||||
if (boundPropertyName[0] == '@') {
|
||||
this._reportError(
|
||||
`Assigning animation triggers within host data as attributes such as "@prop": "exp" is invalid. Use host bindings (e.g. "[@prop]": "exp") instead.`,
|
||||
sourceSpan, ParseErrorLevel.FATAL);
|
||||
boundPropertyName = boundPropertyName.substr(1);
|
||||
}
|
||||
} else {
|
||||
boundPropertyName = this._schemaRegistry.getMappedPropName(partValue);
|
||||
securityContext = this._schemaRegistry.securityContext(elementName, boundPropertyName);
|
||||
|
Reference in New Issue
Block a user