Эх сурвалжийг харах

lang: Remove deprecated account (#907)

Sandra 4 жил өмнө
parent
commit
2a4fa8c94b

+ 0 - 7
lang/syn/src/parser/accounts/constraints.rs

@@ -172,13 +172,6 @@ pub fn parse_token(stream: ParseStream) -> ParseResult<ConstraintToken> {
                 .join(stream.span())
                 .join(stream.span())
                 .unwrap_or_else(|| ident.span());
                 .unwrap_or_else(|| ident.span());
             match kw.as_str() {
             match kw.as_str() {
-                // Deprecated since 0.11
-                "belongs_to" => {
-                    return Err(ParseError::new(
-                        ident.span(),
-                        "belongs_to is deprecated, please use has_one",
-                    ))
-                }
                 "has_one" => ConstraintToken::HasOne(Context::new(
                 "has_one" => ConstraintToken::HasOne(Context::new(
                     span,
                     span,
                     ConstraintHasOne {
                     ConstraintHasOne {