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-10-20 15:42:22 -07:00
2021-05-20 21:24:25 -07:00
2021-04-29 19:46:10 -07:00
2021-09-08 12:53:17 -07:00
2021-09-19 16:23:53 -07:00
2021-09-02 16:50:08 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2021-09-19 16:23:53 -07:00
2021-05-04 18:33:23 -07:00
2021-09-13 12:09:12 -07:00
2021-09-20 13:29:27 -07:00
2021-05-14 09:22:58 -07:00
2020-10-14 02:40:10 -07:00
2020-03-08 23:01:17 -07:00
2021-09-21 08:23:08 -07:00
2021-09-21 08:23:08 -07:00
2021-09-22 10:37:09 -07:00
2021-10-20 22:18:38 -07:00
2021-08-24 07:21:56 -07:00
2019-10-16 10:06:34 -07:00
2021-09-13 12:09:12 -07: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-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2020-10-14 02:40:10 -07:00
2021-09-02 16:50:08 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2021-05-20 19:19:57 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2020-06-16 02:12:09 -07:00
2020-12-16 16:03:57 -08:00
2020-07-23 17:11:32 -07:00
2020-09-09 12:48:09 -07:00
2020-09-09 12:48:09 -07:00
2021-09-19 16:23:53 -07:00
2021-09-19 16:23:53 -07:00
2020-05-26 20:18:02 -07:00
2020-09-09 12:48:09 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2021-05-14 09:22:58 -07:00
2021-05-20 19:19:57 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2020-12-10 20:23:16 -08:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2021-07-29 17:26:02 -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
2020-10-30 14:05:11 -07:00
2020-10-30 14:05:11 -07:00
2020-03-08 23:01:17 -07:00
2020-03-08 23:01:17 -07:00
2019-11-18 16:17:09 -08: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
2021-09-02 16:50:08 -07:00
2021-09-02 16:50:08 -07:00
2019-10-16 10:06:34 -07:00
2020-09-28 21:26:41 -07:00
2020-10-14 02:40:10 -07:00
2020-03-08 23:01:17 -07:00
2019-10-16 10:06:34 -07:00
2021-09-24 18:11:33 -07:00
2019-10-16 10:06:34 -07:00
2020-03-08 23:01:17 -07:00
2021-09-24 16:59:29 -07:00
2021-09-24 16:59:29 -07:00
2020-05-21 21:12:36 -07:00
2019-11-22 00:47:22 -08:00
2020-03-08 23:01:17 -07:00
2019-07-12 16:51:28 -07:00
2020-12-19 06:01:47 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00