@@ -2156,28 +2156,6 @@ struct Converter final : UastConverter {
2156
2156
return new CallExpr (PRIM_TO_NILABLE_CLASS_CHECKED, expr);
2157
2157
}
2158
2158
2159
- Expr* convertLogicalAndAssign (const uast::OpCall* node) {
2160
- if (node->op () != USTR (" &&=" )) return nullptr ;
2161
-
2162
- astlocMarker markAstLoc (node->id ());
2163
-
2164
- INT_ASSERT (node->numActuals () == 2 );
2165
- Expr* lhs = convertAST (node->actual (0 ));
2166
- Expr* rhs = convertAST (node->actual (1 ));
2167
- return buildLAndAssignment (lhs, rhs);
2168
- }
2169
-
2170
- Expr* convertLogicalOrAssign (const uast::OpCall* node) {
2171
- if (node->op () != USTR (" ||=" )) return nullptr ;
2172
-
2173
- astlocMarker markAstLoc (node->id ());
2174
-
2175
- INT_ASSERT (node->numActuals () == 2 );
2176
- Expr* lhs = convertAST (node->actual (0 ));
2177
- Expr* rhs = convertAST (node->actual (1 ));
2178
- return buildLOrAssignment (lhs, rhs);
2179
- }
2180
-
2181
2159
Expr* convertTupleAssign (const uast::OpCall* node) {
2182
2160
if (node->op () != USTR (" =" ) || node->numActuals () < 1
2183
2161
|| !node->actual (0 )->isTuple ()) return nullptr ;
@@ -2226,10 +2204,6 @@ struct Converter final : UastConverter {
2226
2204
ret = conv;
2227
2205
} else if (auto conv = convertToNilableChecked (node)) {
2228
2206
ret = conv;
2229
- } else if (auto conv = convertLogicalAndAssign (node)) {
2230
- ret = conv;
2231
- } else if (auto conv = convertLogicalOrAssign (node)) {
2232
- ret = conv;
2233
2207
} else if (auto conv = convertTupleAssign (node)) {
2234
2208
ret = conv;
2235
2209
} else if (node->op () == USTR (" align" )) {
0 commit comments