Skip to content

Commit 41ac0fc

Browse files
committed
Swift: use toString and Location from shared CFG library
1 parent a9c9170 commit 41ac0fc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

swift/ql/lib/codeql/swift/controlflow/ControlFlowGraph.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,10 @@ class CfgScope extends Scope instanceof CfgScope::Range_ {
2828
* Only nodes that can be reached from an entry point are included in the CFG.
2929
*/
3030
class ControlFlowNode extends Node {
31-
/** Gets a textual representation of this control flow node. */
32-
string toString() { none() }
3331

3432
/** Gets the AST node that this node corresponds to, if any. */
3533
ControlFlowElement getNode() { none() }
3634

37-
/** Gets the location of this control flow node. */
38-
Location getLocation() { none() }
39-
4035
/** Gets the file of this control flow node. */
4136
final File getFile() { result = this.getLocation().getFile() }
4237

0 commit comments

Comments
 (0)