Skip to content

Commit f1b5ed1

Browse files
committed
C#: Remove [source|sink|summary|negativeSummary]Model/1 predicates.
1 parent 3c8fb05 commit f1b5ed1

File tree

1 file changed

+0
-74
lines changed

1 file changed

+0
-74
lines changed

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

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -223,26 +223,6 @@ predicate sourceModel(
223223
extSourceModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance)
224224
}
225225

226-
/** Holds if `row` is a source model. */
227-
predicate sourceModel(string row) {
228-
exists(
229-
string namespace, string type, boolean subtypes, string name, string signature, string ext,
230-
string output, string kind, string provenance
231-
|
232-
sourceModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance) and
233-
row =
234-
namespace + ";" //
235-
+ type + ";" //
236-
+ subtypes.toString() + ";" //
237-
+ name + ";" //
238-
+ signature + ";" //
239-
+ ext + ";" //
240-
+ output + ";" //
241-
+ kind + ";" //
242-
+ provenance
243-
)
244-
}
245-
246226
/** Holds if a sink model exists for the given parameters. */
247227
extensible predicate extSinkModel(
248228
string namespace, string type, boolean subtypes, string name, string signature, string ext,
@@ -271,26 +251,6 @@ predicate sinkModel(
271251
extSinkModel(namespace, type, subtypes, name, signature, ext, input, kind, provenance)
272252
}
273253

274-
/** Holds if `row` is a sink model. */
275-
predicate sinkModel(string row) {
276-
exists(
277-
string namespace, string type, boolean subtypes, string name, string signature, string ext,
278-
string input, string kind, string provenance
279-
|
280-
sinkModel(namespace, type, subtypes, name, signature, ext, input, kind, provenance) and
281-
row =
282-
namespace + ";" //
283-
+ type + ";" //
284-
+ subtypes.toString() + ";" //
285-
+ name + ";" //
286-
+ signature + ";" //
287-
+ ext + ";" //
288-
+ input + ";" //
289-
+ kind + ";" //
290-
+ provenance
291-
)
292-
}
293-
294254
/** Holds if a summary model exists for the given parameters. */
295255
extensible predicate extSummaryModel(
296256
string namespace, string type, boolean subtypes, string name, string signature, string ext,
@@ -320,27 +280,6 @@ predicate summaryModel(
320280
extSummaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance)
321281
}
322282

323-
/** Holds if `row` is a summary model. */
324-
predicate summaryModel(string row) {
325-
exists(
326-
string namespace, string type, boolean subtypes, string name, string signature, string ext,
327-
string input, string output, string kind, string provenance
328-
|
329-
summaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) and
330-
row =
331-
namespace + ";" //
332-
+ type + ";" //
333-
+ subtypes.toString() + ";" //
334-
+ name + ";" //
335-
+ signature + ";" //
336-
+ ext + ";" //
337-
+ input + ";" //
338-
+ output + ";" //
339-
+ kind + ";" //
340-
+ provenance
341-
)
342-
}
343-
344283
/** Holds if a summary model exists indicating there is no flow for the given parameters. */
345284
extensible predicate extNegativeSummaryModel(
346285
string namespace, string type, string name, string signature, string provenance
@@ -362,19 +301,6 @@ predicate negativeSummaryModel(
362301
extNegativeSummaryModel(namespace, type, name, signature, provenance)
363302
}
364303

365-
/** Holds if `row` is a negative summary model. */
366-
predicate negativeSummaryModel(string row) {
367-
exists(string namespace, string type, string name, string signature, string provenance |
368-
negativeSummaryModel(namespace, type, name, signature, provenance) and
369-
row =
370-
namespace + ";" //
371-
+ type + ";" //
372-
+ name + ";" //
373-
+ signature + ";" //
374-
+ provenance
375-
)
376-
}
377-
378304
private predicate relevantNamespace(string namespace) {
379305
sourceModel(namespace, _, _, _, _, _, _, _, _) or
380306
sinkModel(namespace, _, _, _, _, _, _, _, _) or

0 commit comments

Comments
 (0)