Skip to content

Commit c92dfef

Browse files
committed
[-Wunsafe-buffer-usage] Remove unused function after 7c3ad9e. NFC
1 parent d8278b6 commit c92dfef

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

clang/lib/Analysis/UnsafeBufferUsage.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,15 +1677,6 @@ std::string getUserFillPlaceHolder(StringRef HintTextToUser = "placeholder") {
16771677
return s;
16781678
}
16791679

1680-
// Return the text representation of the given `APInt Val`:
1681-
static std::string getAPIntText(APInt Val) {
1682-
SmallVector<char> Txt;
1683-
Val.toString(Txt, 10, true);
1684-
// APInt::toString does not add '\0' to the end of the string for us:
1685-
Txt.push_back('\0');
1686-
return Txt.data();
1687-
}
1688-
16891680
// Return the source location of the last character of the AST `Node`.
16901681
template <typename NodeTy>
16911682
static std::optional<SourceLocation>

0 commit comments

Comments
 (0)