Skip to content

Commit dd79049

Browse files
committed
C#: Remove unnecessary isUnboundDeclaration predicates
1 parent 489561f commit dd79049

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

csharp/ql/src/utils/modeleditor/FetchApplicationModeMethods.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ private import ModelEditor
1212

1313
class ExternalEndpoint extends Endpoint {
1414
ExternalEndpoint() {
15-
this.isUnboundDeclaration() and
1615
this.fromLibrary()
1716
}
1817
}

csharp/ql/src/utils/modeleditor/ModelEditor.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ class Endpoint extends DotNet::Callable {
2828
Endpoint() {
2929
[this.(Modifiable), this.(Accessor).getDeclaration()].isEffectivelyPublic() and
3030
not isUninteresting(this) and
31-
this.isUnboundDeclaration() and
32-
this.getDeclaringType().isUnboundDeclaration()
31+
this.isUnboundDeclaration()
3332
}
3433

3534
/**

0 commit comments

Comments
 (0)