Skip to content

Commit 505aed9

Browse files
committed
Remove the parser from Native
1 parent a327017 commit 505aed9

File tree

2 files changed

+2
-124
lines changed

2 files changed

+2
-124
lines changed

core/common/src/format/DateTimeFormat.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ internal sealed class AbstractDateTimeFormat<T, U : Copyable<U>> : DateTimeForma
112112
override fun parse(input: CharSequence): T {
113113
val matched = try {
114114
// without the fully qualified name, the compilation fails for some reason
115-
kotlinx.datetime.internal.format.parser.Parser(actualFormat.parser).match(input, emptyIntermediate)
115+
Parser(actualFormat.parser).match(input, emptyIntermediate)
116116
} catch (e: ParseException) {
117117
throw DateTimeFormatException("Failed to parse value from '$input'", e)
118118
}
@@ -125,7 +125,7 @@ internal sealed class AbstractDateTimeFormat<T, U : Copyable<U>> : DateTimeForma
125125

126126
override fun parseOrNull(input: CharSequence): T? =
127127
// without the fully qualified name, the compilation fails for some reason
128-
kotlinx.datetime.internal.format.parser.Parser(actualFormat.parser).matchOrNull(input, emptyIntermediate)?.let { valueFromIntermediateOrNull(it) }
128+
Parser(actualFormat.parser).matchOrNull(input, emptyIntermediate)?.let { valueFromIntermediateOrNull(it) }
129129

130130
}
131131

core/native/src/Parser.kt

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)