Skip to content

Commit ce3b7b6

Browse files
thomas-serre-sonarsourcesonartech
authored andcommitted
SONARPY-3694 Remove dead code (#828)
GitOrigin-RevId: afe2cf9a7e9b8d88d79321adda5bc9aa2bdbb4b3
1 parent 3333312 commit ce3b7b6

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

python-checks/src/main/java/org/sonar/python/checks/CorsMiddlewareOrderingCheck.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,6 @@ private static boolean isCorsMiddleware(SubscriptionContext ctx, CallExpression
9999
.orElse(false);
100100
}
101101

102-
private static boolean isNameContainingCors(@Nullable Expression expr){
103-
if(expr == null){
104-
return false;
105-
}
106-
if(!(expr instanceof Name name)) {
107-
return false;
108-
}
109-
String simpleName = name.name();
110-
return simpleName != null && (simpleName.contains("CORS") || simpleName.contains("Cors"));
111-
}
112-
113102
private static boolean hasSubsequentMiddlewareAddition(
114103
SubscriptionContext ctx,
115104
SymbolV2 receiverSymbol,

0 commit comments

Comments
 (0)