Phillip Pan
def7dd857d
use new instead of alloc init
...
Summary:
i saw this a lot in the codebase, it's not optimal bc we're using two selectors when we only need one.
fastmod --extensions m,mm '\[\[(.*) alloc] init]' '[${1} new]' --dir xplat/js/react-native-github/*
i manually updated the callsites that this codemod couldn't handle (e.g., where there were more than one of these instances in a single line)
Changelog: [Internal]
Reviewed By: RSNara
Differential Revision: D31776561
fbshipit-source-id: 1b16da240e8a79b54da67383d548921b82b05a9f
2021-10-20 22:18:38 -07:00
..
2021-03-12 04:00:19 -08:00
2021-09-22 10:37:09 -07:00
2021-09-28 14:05:00 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2021-01-09 22:11:00 -08:00
2019-10-16 10:06:34 -07:00
2019-11-16 00:13:48 -08:00
2021-03-31 16:39:02 -07:00
2021-03-31 16:39:02 -07:00
2019-10-16 10:06:34 -07:00
2021-01-09 22:11:00 -08:00
2019-10-16 10:06:34 -07:00
2020-05-11 09:01:33 -07:00
2019-10-16 10:06:34 -07:00
2020-09-29 04:14:33 -07:00
2020-03-08 23:01:17 -07:00
2021-04-28 13:48:28 -07:00
2020-03-08 23:01:17 -07:00
2021-09-16 23:23:33 -07:00
2020-03-08 23:01:17 -07:00
2021-01-09 22:11:00 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2021-08-16 11:25:57 -07:00
2021-08-16 11:25:57 -07:00
2020-09-28 21:26:41 -07:00
2020-09-28 21:26:41 -07:00
2020-03-08 23:01:17 -07:00
2021-08-16 11:25:57 -07:00
2021-05-02 15:42:49 -07:00
2021-05-02 15:42:49 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-09-28 21:26:41 -07:00
2020-04-08 12:48:07 -07:00
2020-04-08 12:48:07 -07:00
2019-10-16 10:06:34 -07:00
2020-10-14 02:40:10 -07:00
2019-10-16 10:06:34 -07:00
2020-01-06 22:19:37 -08:00
2020-03-08 23:01:17 -07:00
2021-01-09 22:11:00 -08:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2019-10-16 10:06:34 -07:00
2021-01-09 22:11:00 -08:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2019-10-16 10:06:34 -07:00
2020-10-14 02:40:10 -07:00
2019-10-16 10:06:34 -07:00
2020-10-14 02:40:10 -07:00
2019-10-16 10:06:34 -07:00
2020-10-14 02:40:10 -07:00
2019-10-16 10:06:34 -07:00
2021-06-23 13:37:22 -07:00
2021-10-20 22:18:38 -07:00
2020-10-14 02:40:10 -07:00
2021-10-20 22:18:38 -07:00
2021-03-31 16:39:02 -07:00
2019-10-16 10:06:34 -07:00
2020-10-14 02:40:10 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2021-09-22 10:37:09 -07:00