Skip to content

Commit 1645b5d

Browse files
[flang] Remove unused function IsListDirectedFieldComplete
This patch fixes a warning: flang/runtime/edit-input.cpp:27:20: error: unused function 'IsListDirectedFieldComplete' [-Werror,-Wunused-function]
1 parent efca035 commit 1645b5d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

flang/runtime/edit-input.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ static inline bool IsCharValueSeparator(const DataEdit &edit, char32_t ch) {
2424
return ch == ' ' || ch == '\t' || ch == '/' || ch == comma;
2525
}
2626

27-
static inline bool IsListDirectedFieldComplete(
28-
IoStatementState &io, const DataEdit &edit) {
29-
std::size_t byteCount;
30-
if (auto ch{io.GetCurrentChar(byteCount)}) {
31-
return IsCharValueSeparator(edit, *ch);
32-
} else {
33-
return true; // end of record: ok
34-
}
35-
}
36-
3727
static bool CheckCompleteListDirectedField(
3828
IoStatementState &io, const DataEdit &edit) {
3929
if (edit.IsListDirected()) {

0 commit comments

Comments
 (0)