Skip to content

Commit 6a5aa1f

Browse files
Fix compilation error
1 parent b0033df commit 6a5aa1f

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

cpp/common/src/codingstandards/cpp/types/Compatible.qll

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -522,29 +522,3 @@ module FunctionDeclarationTypeEquivalence<
522522
.getType(), f2.getParameterDeclarationEntry(pragma[only_bind_into](i)).getType())
523523
}
524524
}
525-
526-
/**
527-
* Convenience class to reduce the awkwardness of how `RoutineType` and `FunctionPointerIshType`
528-
* don't have a common ancestor.
529-
*/
530-
private class FunctionType extends Type {
531-
FunctionType() { this instanceof RoutineType or this instanceof FunctionPointerIshType }
532-
533-
Type getReturnType() {
534-
result = this.(RoutineType).getReturnType() or
535-
result = this.(FunctionPointerIshType).getReturnType()
536-
}
537-
538-
Type getParameterType(int i) {
539-
result = this.(RoutineType).getParameterType(i) or
540-
result = this.(FunctionPointerIshType).getParameterType(i)
541-
}
542-
}
543-
544-
private class LeafType extends Type {
545-
LeafType() {
546-
not this instanceof DerivedType and
547-
not this instanceof FunctionType and
548-
not this instanceof FunctionType
549-
}
550-
}

0 commit comments

Comments
 (0)