1 | static void forgetTranspiledStandardFunctions(S... functions) {
|
2 | if (empty(functions)) |
3 | forgetAllTranspiledStandardFunctions(); |
4 | else |
5 | forgetTranspiledStandardFunctions(lithashset(functions)); |
6 | } |
7 | |
8 | static void forgetTranspiledStandardFunctions(Iterable<S> functions) {
|
9 | Set<S> functionSet = asSet(functions); |
10 | for (File f : listFilesWithExtension(transpiledStandardFunctions_dir(), ".functions")) {
|
11 | if (!containsOneOf(lines(loadTextFile(f)), functionSet)) continue; |
12 | deleteFile(replaceExtension(f, ".java")); |
13 | deleteFile(f); |
14 | } |
15 | } |
Began life as a copy of #1015098
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017178 |
| Snippet name: | forgetTranspiledStandardFunctions |
| Eternal ID of this version: | #1017178/6 |
| Text MD5: | fe7752cc0d8b04be731f2f7b4f1ae7bc |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-09-25 13:02:17 |
| Source code size: | 562 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 544 / 589 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |