Skip to content

Commit 19da00a

Browse files
committed
C#: Delete clears content test case.
1 parent 2ae2008 commit 19da00a

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

csharp/ql/test/library-tests/dataflow/external-models/steps.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,3 @@ summarySetterStep
1919
| Steps.cs:30:34:30:34 | 0 | Steps.cs:30:13:30:16 | [post] this access | Steps.cs:57:13:57:17 | field Field |
2020
| Steps.cs:34:37:34:37 | 0 | Steps.cs:34:13:34:16 | [post] this access | Steps.cs:63:13:63:20 | property Property |
2121
| Steps.cs:38:36:38:36 | 0 | Steps.cs:38:13:38:16 | [post] this access | file://:0:0:0:0 | element |
22-
clearsContent
23-
| Steps.cs:61:14:61:28 | StepFieldSetter | file://:0:0:0:0 | element | this |
24-
| Steps.cs:67:14:67:31 | StepPropertySetter | file://:0:0:0:0 | element | this |

csharp/ql/test/library-tests/dataflow/external-models/steps.ql

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ private class SummaryModelTest extends SummaryModelCsv {
2929
}
3030
}
3131

32-
private class SummarizedCallableClear extends SummarizedCallable {
33-
SummarizedCallableClear() {
34-
this.getName() = ["StepPropertySetter", "StepFieldSetter"] and
35-
this.getFile().getBaseName() = "Steps.cs"
36-
}
37-
38-
override predicate clearsContent(ParameterPosition pos, DataFlow::ContentSet content) {
39-
pos.isThisParameter() and
40-
content instanceof DataFlow::ElementContent
41-
}
42-
}
43-
4432
query predicate summaryThroughStep(
4533
DataFlow::Node node1, DataFlow::Node node2, boolean preservesValue
4634
) {
@@ -62,8 +50,3 @@ query predicate summarySetterStep(DataFlow::Node arg, DataFlow::Node out, Conten
6250
FlowSummaryImpl::Private::Steps::summarySetterStep(arg, c, out,
6351
any(DataFlowDispatch::DataFlowSummarizedCallable sc))
6452
}
65-
66-
query predicate clearsContent(SummarizedCallable c, DataFlow::Content k, ParameterPosition pos) {
67-
c.clearsContent(pos, k) and
68-
c.fromSource()
69-
}

0 commit comments

Comments
 (0)