Commit 33c862c
committed
chore: remove AppsModel::appItem(desktopId)
此接口会先调用 appItems() 获取所有应用的列表,然后再遍历以进行查找.
一方面是效率问题(可以直接查找返回),一方面可能存在遍历时原有指针可能
失效的问题.
原本相关类提供了 itemFromDesktopId() 接口提供了完全相同的功能,故直
接移除 appItem(desktopId) 接口.
Log:1 parent ead060e commit 33c862c
2 files changed
Lines changed: 3 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 101 | | |
123 | 102 | | |
124 | 103 | | |
| |||
127 | 106 | | |
128 | 107 | | |
129 | 108 | | |
130 | | - | |
| 109 | + | |
131 | 110 | | |
132 | 111 | | |
133 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | | - | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
0 commit comments