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