Skip to content

Commit 4d327db

Browse files
committed
Swift: The PointerType class isn't used any d any more.
1 parent 61340c4 commit 4d327db

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/PointerTypes.qll

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55

66
import swift
77

8-
/**
9-
* A type that is used as a pointer in Swift, such as `UnsafePointer`,
10-
* `UnsafeBufferPointer` and similar types.
11-
*/
12-
class PointerType extends Type {
13-
PointerType() {
14-
this instanceof UnsafeTypedPointerType or
15-
this instanceof UnsafeRawPointerType or
16-
this instanceof OpaquePointerType or
17-
this instanceof AutoreleasingUnsafeMutablePointerType or
18-
this instanceof UnmanagedType or
19-
this instanceof CVaListPointerType or
20-
this instanceof ManagedBufferPointerType
21-
}
22-
}
23-
248
/**
259
* A Swift unsafe typed pointer type such as `UnsafePointer`,
2610
* `UnsafeMutablePointer` or `UnsafeBufferPointer`.

0 commit comments

Comments
 (0)