| Index: mojom/mojom_parser/mojom/user_defined_types.go
|
| diff --git a/mojom/mojom_parser/mojom/user_defined_types.go b/mojom/mojom_parser/mojom/user_defined_types.go
|
| index c701e01f06b9a85638c9745b75cda712102268e3..1bacd006c7ba5aff2040b166bbda2f18ed0f79f2 100644
|
| --- a/mojom/mojom_parser/mojom/user_defined_types.go
|
| +++ b/mojom/mojom_parser/mojom/user_defined_types.go
|
| @@ -504,17 +504,6 @@ func (MojomEnum) ConcreteTypeKind() TypeKind {
|
| }
|
|
|
| func (e MojomEnum) IsAssignmentCompatibleWith(value LiteralValue) bool {
|
| - if value.IsDefault() {
|
| - return true
|
| - }
|
| - t := value.LiteralValueType()
|
| - if t == SimpleTypeInt8 || t == SimpleTypeInt16 || t == SimpleTypeInt32 || t == SimpleTypeInt64 {
|
| - // TODO(rudominer) Finish MojomEnum.IsAssignmentCompatibleWith()
|
| - // We should check that the value is in the range of the enum fields.
|
| - // Do we want to deprecate the ability to assign an integer to an
|
| - // enum varialbe?
|
| - return true
|
| - }
|
| return false
|
| }
|
|
|
|
|