CPP: Un-deprecate getNumArgNeeded(n). Turns out I missed a place where it's used.

This commit is contained in:
Geoffrey White 2019-11-04 15:54:55 +00:00
Родитель ed87f25886
Коммит a4250be72f
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -854,11 +854,8 @@ class FormatLiteral extends Literal {
/**
* Gets the number of arguments required by the nth conversion specifier
* of this format string.
*
* DEPRECATED. This was a helper function for `getNumArgNeeded` and is no
* longer required.
*/
deprecated int getNumArgNeeded(int n) {
int getNumArgNeeded(int n) {
exists(this.getConvSpecOffset(n)) and
result = count(int mode | hasFormatArgumentIndexFor(n, mode))
}