From 178c6422b7902782c3d7ad3f22ac4693f6a6fca1 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 24 Sep 2020 12:46:00 +1000 Subject: [PATCH] Delete deprecated JSON quirks --- release/c/wuffs-unsupported-snapshot.c | 4 ---- std/json/decode_quirks.wuffs | 6 ------ 2 files changed, 10 deletions(-) diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index 63548522..aea1f365 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -7663,12 +7663,8 @@ extern const char wuffs_json__error__unsupported_recursion_depth[]; #define WUFFS_JSON__QUIRK_ALLOW_TRAILING_FILLER 1225364497 -#define WUFFS_JSON__QUIRK_ALLOW_TRAILING_COMMENT 1225364497 - #define WUFFS_JSON__QUIRK_EXPECT_TRAILING_NEW_LINE_OR_EOF 1225364498 -#define WUFFS_JSON__QUIRK_ALLOW_TRAILING_NEW_LINE 1225364498 - #define WUFFS_JSON__QUIRK_JSON_POINTER_ALLOW_TILDE_R_TILDE_N 1225364499 #define WUFFS_JSON__QUIRK_REPLACE_INVALID_UNICODE 1225364500 diff --git a/std/json/decode_quirks.wuffs b/std/json/decode_quirks.wuffs index 9970c356..34b0ab0b 100644 --- a/std/json/decode_quirks.wuffs +++ b/std/json/decode_quirks.wuffs @@ -170,9 +170,6 @@ pub const QUIRK_ALLOW_LEADING_UNICODE_BYTE_ORDER_MARK : base.u32 = 0x4909_9400 | // quirk will consume multiple trailing '\n' bytes. pub const QUIRK_ALLOW_TRAILING_FILLER : base.u32 = 0x4909_9400 | 0x11 -// Deprecated: equivalent to QUIRK_ALLOW_TRAILING_FILLER. -pub const QUIRK_ALLOW_TRAILING_COMMENT : base.u32 = 0x4909_9400 | 0x11 - // When this quirk is enabled, following a successful decoding of a top-level // JSON value, any trailing whitespace (ASCII characters 0x09, 0x0A, 0x0D or // 0x20) is also consumed (and WUFFS_BASE__TOKEN__VBC__FILLER tokens emitted) @@ -209,9 +206,6 @@ pub const QUIRK_ALLOW_TRAILING_COMMENT : base.u32 = 0x4909_9400 | 0x11 // "application/json-seq". pub const QUIRK_EXPECT_TRAILING_NEW_LINE_OR_EOF : base.u32 = 0x4909_9400 | 0x12 -// Deprecated: equivalent to QUIRK_EXPECT_TRAILING_NEW_LINE_OR_EOF. -pub const QUIRK_ALLOW_TRAILING_NEW_LINE : base.u32 = 0x4909_9400 | 0x12 - // When this quirk is enabled, JSON Pointer strings containing "~r" or "~n", // which would otherwise be invalid, are unescaped as "\r" or "\n". //