[flang] Remove unused function IsListDirectedFieldComplete

This patch fixes a warning:

  flang/runtime/edit-input.cpp:27:20: error: unused function
  'IsListDirectedFieldComplete' [-Werror,-Wunused-function]
This commit is contained in:
Kazu Hirata 2023-09-18 10:45:25 -07:00
parent efca035c6d
commit 1645b5d321

View File

@ -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()) {