[flang-commits] [flang] 1645b5d - [flang] Remove unused function IsListDirectedFieldComplete
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Mon Sep 18 10:45:32 PDT 2023
Author: Kazu Hirata
Date: 2023-09-18T10:45:25-07:00
New Revision: 1645b5d32187b3229318fe29b7226fe70af27ba7
URL: https://github.com/llvm/llvm-project/commit/1645b5d32187b3229318fe29b7226fe70af27ba7
DIFF: https://github.com/llvm/llvm-project/commit/1645b5d32187b3229318fe29b7226fe70af27ba7.diff
LOG: [flang] Remove unused function IsListDirectedFieldComplete
This patch fixes a warning:
flang/runtime/edit-input.cpp:27:20: error: unused function
'IsListDirectedFieldComplete' [-Werror,-Wunused-function]
Added:
Modified:
flang/runtime/edit-input.cpp
Removed:
################################################################################
diff --git a/flang/runtime/edit-input.cpp b/flang/runtime/edit-input.cpp
index a89612ab74640fb..1861c9f8499b0b0 100644
--- a/flang/runtime/edit-input.cpp
+++ b/flang/runtime/edit-input.cpp
@@ -24,16 +24,6 @@ static inline bool IsCharValueSeparator(const DataEdit &edit, char32_t ch) {
return ch == ' ' || ch == '\t' || ch == '/' || ch == comma;
}
-static inline bool IsListDirectedFieldComplete(
- IoStatementState &io, const DataEdit &edit) {
- std::size_t byteCount;
- if (auto ch{io.GetCurrentChar(byteCount)}) {
- return IsCharValueSeparator(edit, *ch);
- } else {
- return true; // end of record: ok
- }
-}
-
static bool CheckCompleteListDirectedField(
IoStatementState &io, const DataEdit &edit) {
if (edit.IsListDirected()) {
More information about the flang-commits
mailing list