Skip to content

Commit 4835d14

Browse files
committed
Java/C#: Delete the deprecated NeutralModelCsv class.
1 parent 67732cb commit 4835d14

File tree

2 files changed

+0
-54
lines changed

2 files changed

+0
-54
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/ExternalFlow.qll

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -132,28 +132,12 @@ private class SummaryModelCsvInternal extends Unit {
132132
abstract predicate row(string row);
133133
}
134134

135-
/**
136-
* DEPRECATED: Define neutral models as data extensions instead.
137-
*
138-
* A unit class for adding additional neutral model rows.
139-
*
140-
* Extend this class to add additional neutral definitions.
141-
*/
142-
deprecated class NeutralModelCsv = NeutralModelCsvInternal;
143-
144-
private class NeutralModelCsvInternal extends Unit {
145-
/** Holds if `row` specifies a neutral definition. */
146-
abstract predicate row(string row);
147-
}
148-
149135
private predicate sourceModelInternal(string row) { any(SourceModelCsvInternal s).row(row) }
150136

151137
private predicate summaryModelInternal(string row) { any(SummaryModelCsvInternal s).row(row) }
152138

153139
private predicate sinkModelInternal(string row) { any(SinkModelCsvInternal s).row(row) }
154140

155-
private predicate neutralModelInternal(string row) { any(NeutralModelCsvInternal s).row(row) }
156-
157141
/**
158142
* Holds if a source model exists for the given parameters.
159143
*/
@@ -250,15 +234,6 @@ extensible predicate extNeutralModel(
250234
predicate neutralModel(
251235
string namespace, string type, string name, string signature, string provenance
252236
) {
253-
exists(string row |
254-
neutralModelInternal(row) and
255-
row.splitAt(";", 0) = namespace and
256-
row.splitAt(";", 1) = type and
257-
row.splitAt(";", 2) = name and
258-
row.splitAt(";", 3) = signature and
259-
row.splitAt(";", 4) = provenance
260-
)
261-
or
262237
extNeutralModel(namespace, type, name, signature, provenance)
263238
}
264239

@@ -391,8 +366,6 @@ module ModelValidation {
391366
sinkModelInternal(row) and expect = 9 and pred = "sink"
392367
or
393368
summaryModelInternal(row) and expect = 10 and pred = "summary"
394-
or
395-
neutralModelInternal(row) and expect = 5 and pred = "neutral"
396369
|
397370
exists(int cols |
398371
cols = 1 + max(int n | exists(row.splitAt(";", n))) and

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -122,28 +122,12 @@ private class SummaryModelCsvInternal extends Unit {
122122
abstract predicate row(string row);
123123
}
124124

125-
/**
126-
* DEPRECATED: Define neutral models as data extensions instead.
127-
*
128-
* A unit class for adding additional neutral model rows.
129-
*
130-
* Extend this class to add additional neutral definitions.
131-
*/
132-
deprecated class NeutralModelCsv = NeutralModelCsvInternal;
133-
134-
private class NeutralModelCsvInternal extends Unit {
135-
/** Holds if `row` specifies a neutral definition. */
136-
abstract predicate row(string row);
137-
}
138-
139125
private predicate sourceModelInternal(string row) { any(SourceModelCsvInternal s).row(row) }
140126

141127
private predicate summaryModelInternal(string row) { any(SummaryModelCsvInternal s).row(row) }
142128

143129
private predicate sinkModelInternal(string row) { any(SinkModelCsvInternal s).row(row) }
144130

145-
private predicate neutralModelInternal(string row) { any(NeutralModelCsvInternal s).row(row) }
146-
147131
/**
148132
* Holds if an experimental source model exists for the given parameters.
149133
* This is only for experimental queries.
@@ -318,15 +302,6 @@ extensible predicate extNeutralModel(
318302

319303
/** Holds if a neutral model exists indicating there is no flow for the given parameters. */
320304
predicate neutralModel(string package, string type, string name, string signature, string provenance) {
321-
exists(string row |
322-
neutralModelInternal(row) and
323-
row.splitAt(";", 0) = package and
324-
row.splitAt(";", 1) = type and
325-
row.splitAt(";", 2) = name and
326-
row.splitAt(";", 3) = signature and
327-
row.splitAt(";", 4) = provenance
328-
)
329-
or
330305
extNeutralModel(package, type, name, signature, provenance)
331306
}
332307

@@ -468,8 +443,6 @@ module ModelValidation {
468443
sinkModelInternal(row) and expect = 9 and pred = "sink"
469444
or
470445
summaryModelInternal(row) and expect = 10 and pred = "summary"
471-
or
472-
neutralModelInternal(row) and expect = 5 and pred = "neutral"
473446
|
474447
exists(int cols |
475448
cols = 1 + max(int n | exists(row.splitAt(";", n))) and

0 commit comments

Comments
 (0)