From 393b97a69e472f41cb6879d12adf3733693166d4 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Mon, 11 Oct 2021 13:58:43 +0000 Subject: [PATCH] Remove duplicated FileMode fixes These were unnecessarily added twice when I finished out the rest of the constant rename fixes, but had already been implemented as the proof of concept for core library fixes. Change-Id: I4c5bb018ad344ccb4c393c656fed47aae2df4d16 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214066 Auto-Submit: Nate Bosch Commit-Queue: Lasse R.H. Nielsen Reviewed-by: Lasse R.H. Nielsen --- sdk/lib/_internal/fix_data.yaml | 50 ------------------------- tests/lib/fix_data_tests/io.dart | 5 --- tests/lib/fix_data_tests/io.dart.expect | 5 --- 3 files changed, 60 deletions(-) diff --git a/sdk/lib/_internal/fix_data.yaml b/sdk/lib/_internal/fix_data.yaml index 7f87843c7b5..98ccd5508bd 100644 --- a/sdk/lib/_internal/fix_data.yaml +++ b/sdk/lib/_internal/fix_data.yaml @@ -1307,56 +1307,6 @@ transforms: - kind: 'rename' newName: 'gzip' - - title: "Rename to 'read'" - date: 2021-09-20 - element: - uris: [ 'dart:io' ] - field: 'READ' - inClass: 'FileMode' - changes: - - kind: 'rename' - newName: 'read' - - - title: "Rename to 'write'" - date: 2021-09-20 - element: - uris: [ 'dart:io' ] - field: 'WRITE' - inClass: 'FileMode' - changes: - - kind: 'rename' - newName: 'write' - - - title: "Rename to 'append'" - date: 2021-09-20 - element: - uris: [ 'dart:io' ] - field: 'APPEND' - inClass: 'FileMode' - changes: - - kind: 'rename' - newName: 'append' - - - title: "Rename to 'writeOnly'" - date: 2021-09-20 - element: - uris: [ 'dart:io' ] - field: 'WRITE_ONLY' - inClass: 'FileMode' - changes: - - kind: 'rename' - newName: 'writeOnly' - - - title: "Rename to 'writeOnlyAppend'" - date: 2021-09-20 - element: - uris: [ 'dart:io' ] - field: 'WRITE_ONLY_APPEND' - inClass: 'FileMode' - changes: - - kind: 'rename' - newName: 'writeOnlyAppend' - - title: "Rename to 'shared'" date: 2021-09-20 element: diff --git a/tests/lib/fix_data_tests/io.dart b/tests/lib/fix_data_tests/io.dart index 7a2970481c4..1f582d922ae 100644 --- a/tests/lib/fix_data_tests/io.dart +++ b/tests/lib/fix_data_tests/io.dart @@ -131,11 +131,6 @@ void main() { print(ZLibOption.STRATEGY_DEFAULT); print(ZLIB); print(GZIP); - print(FileMode.READ); - print(FileMode.WRITE); - print(FileMode.APPEND); - print(FileMode.WRITE_ONLY); - print(FileMode.WRITE_ONLY_APPEND); print(FileLock.SHARED); print(FileLock.EXCLUSIVE); print(FileLock.BLOCKING_SHARED); diff --git a/tests/lib/fix_data_tests/io.dart.expect b/tests/lib/fix_data_tests/io.dart.expect index f26799ad324..590adfc8b28 100644 --- a/tests/lib/fix_data_tests/io.dart.expect +++ b/tests/lib/fix_data_tests/io.dart.expect @@ -131,11 +131,6 @@ void main() { print(ZLibOption.strategyDefault); print(zlib); print(gzip); - print(FileMode.read); - print(FileMode.write); - print(FileMode.append); - print(FileMode.writeOnly); - print(FileMode.writeOnlyAppend); print(FileLock.shared); print(FileLock.exclusive); print(FileLock.blockingShared);