[flang-commits] [flang] [flang] Remove unused variant of TokenSequence::Put() (NFC) (PR #109196)

via flang-commits flang-commits at lists.llvm.org
Wed Sep 18 13:53:33 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-parser

Author: Youngsuk Kim (JOE1994)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/109196.diff


2 Files Affected:

- (modified) flang/include/flang/Parser/token-sequence.h (-1) 
- (modified) flang/lib/Parser/token-sequence.cpp (-4) 


``````````diff
diff --git a/flang/include/flang/Parser/token-sequence.h b/flang/include/flang/Parser/token-sequence.h
index 1f82a3c1a203ac..0aa8245cdfa4c1 100644
--- a/flang/include/flang/Parser/token-sequence.h
+++ b/flang/include/flang/Parser/token-sequence.h
@@ -105,7 +105,6 @@ class TokenSequence {
   void Put(const char *, std::size_t, Provenance);
   void Put(const CharBlock &, Provenance);
   void Put(const std::string &, Provenance);
-  void Put(llvm::raw_string_ostream &, Provenance);
 
   Provenance GetCharProvenance(std::size_t) const;
   Provenance GetTokenProvenance(
diff --git a/flang/lib/Parser/token-sequence.cpp b/flang/lib/Parser/token-sequence.cpp
index c73bca1df33de3..a4ee1f26bfea9f 100644
--- a/flang/lib/Parser/token-sequence.cpp
+++ b/flang/lib/Parser/token-sequence.cpp
@@ -147,10 +147,6 @@ void TokenSequence::Put(const std::string &s, Provenance provenance) {
   Put(s.data(), s.size(), provenance);
 }
 
-void TokenSequence::Put(llvm::raw_string_ostream &ss, Provenance provenance) {
-  Put(ss.str(), provenance);
-}
-
 TokenSequence &TokenSequence::ToLowerCase() {
   std::size_t tokens{start_.size()};
   std::size_t chars{char_.size()};

``````````

</details>


https://github.com/llvm/llvm-project/pull/109196


More information about the flang-commits mailing list