@@ -226,15 +226,6 @@ module Public {
226226 none ( )
227227 }
228228
229- /**
230- * Holds if values stored inside `content` are cleared on objects passed as
231- * arguments at position `pos` to this callable.
232- *
233- * TODO: Remove once all languages support `WithoutContent` tokens.
234- */
235- pragma [ nomagic]
236- predicate clearsContent ( ParameterPosition pos , ContentSet content ) { none ( ) }
237-
238229 /**
239230 * Holds if the summary is auto generated.
240231 */
@@ -328,23 +319,6 @@ module Private {
328319 SummaryComponentStack:: singleton ( TArgumentSummaryComponent ( _) ) ) and
329320 preservesValue = preservesValue1 .booleanAnd ( preservesValue2 )
330321 )
331- or
332- exists ( ParameterPosition ppos , ContentSet cs |
333- c .clearsContent ( ppos , cs ) and
334- input = SummaryComponentStack:: push ( SummaryComponent:: withoutContent ( cs ) , output ) and
335- output = SummaryComponentStack:: argument ( ppos ) and
336- preservesValue = true
337- )
338- }
339-
340- private class MkClearStack extends RequiredSummaryComponentStack {
341- override predicate required ( SummaryComponent head , SummaryComponentStack tail ) {
342- exists ( SummarizedCallable sc , ParameterPosition ppos , ContentSet cs |
343- sc .clearsContent ( ppos , cs ) and
344- head = SummaryComponent:: withoutContent ( cs ) and
345- tail = SummaryComponentStack:: argument ( ppos )
346- )
347- }
348322 }
349323
350324 /**
@@ -945,8 +919,7 @@ module Private {
945919 AccessPath inSpec , AccessPath outSpec , string kind
946920 ) {
947921 summaryElement ( this , inSpec , outSpec , kind , true ) and
948- not summaryElement ( this , _, _, _, false ) and
949- not this .clearsContent ( _, _)
922+ not summaryElement ( this , _, _, _, false )
950923 }
951924
952925 private predicate relevantSummaryElement ( AccessPath inSpec , AccessPath outSpec , string kind ) {
0 commit comments