Skip to content

Commit

Permalink
[-Wunsafe-buffer-usage] Remove unused function after 7c3ad9e. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Feb 16, 2024
1 parent d8278b6 commit c92dfef
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions clang/lib/Analysis/UnsafeBufferUsage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,15 +1677,6 @@ std::string getUserFillPlaceHolder(StringRef HintTextToUser = "placeholder") {
return s;
}

// Return the text representation of the given `APInt Val`:
static std::string getAPIntText(APInt Val) {
SmallVector<char> Txt;
Val.toString(Txt, 10, true);
// APInt::toString does not add '\0' to the end of the string for us:
Txt.push_back('\0');
return Txt.data();
}

// Return the source location of the last character of the AST `Node`.
template <typename NodeTy>
static std::optional<SourceLocation>
Expand Down

0 comments on commit c92dfef

Please sign in to comment.