From aec151dce9d4df2fa860e4bfb3450a69095d0ced Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Thu, 16 Jan 2025 15:17:30 +0100 Subject: [PATCH] C++: Remove some Objective-C specific query code We have not supported Objective-C for a long time. --- .../Refactoring Opportunities/ClassesWithManyFields.ql | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyFields.ql b/cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyFields.ql index b1d0e4d2619a..15884ba10e4f 100644 --- a/cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyFields.ql +++ b/cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyFields.ql @@ -168,12 +168,7 @@ where strictcount(string fieldName | exists(Field f | f.getDeclaringType() = c and - fieldName = f.getName() and - // IBOutlet's are a way of building GUIs - // automatically out of ObjC properties. - // We don't want to count those for the - // purposes of this query. - not f.getType().getAnAttribute().hasName("iboutlet") + fieldName = f.getName() ) ) and n > 15 and