[flang-commits] [flang] [flang] Remove unused variant of TokenSequence::Put() (NFC) (PR #109196)
Youngsuk Kim via flang-commits
flang-commits at lists.llvm.org
Wed Sep 18 13:53:00 PDT 2024
https://github.com/JOE1994 created https://github.com/llvm/llvm-project/pull/109196
None
>From 363977b9ee952eee1ec22f1957ca66511f904dd0 Mon Sep 17 00:00:00 2001
From: Youngsuk Kim <youngsuk.kim at hpe.com>
Date: Wed, 18 Sep 2024 15:47:44 -0500
Subject: [PATCH] [flang] Remove unused variant of TokenSequence::Put() (NFC)
---
flang/include/flang/Parser/token-sequence.h | 1 -
flang/lib/Parser/token-sequence.cpp | 4 ----
2 files changed, 5 deletions(-)
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()};
More information about the flang-commits
mailing list