Commit 8debd07
committed
Remove redundant comments and fix time import
- Fix missing time import in audio.go causing build failure
- Remove 15 redundant comments that restate obvious code:
* Hot path function docblocks (jetkvm_audio_read_encode, jetkvm_audio_decode_write)
* Obvious state descriptions (capture_channels_swapped)
* SIMD function docblock (simd_clear_samples_s16)
* safe_alsa_open docblock
* relay.go implementation comments (Connect if not connected, Read message, etc.)
* Duplicate RFC 7587 comment in cgo_source.go
- Fix CRITICAL misleading comment: mutex protection claim
* OLD: "The mutexes protect... ALSA I/O" (FALSE - mutex released during I/O)
* NEW: "Mutexes protect handle lifecycle, NOT the ALSA I/O itself"
* Added explanation of race detection via handle pointer comparison
- Reduce verbose function comments (SetAudioOutputEnabled, SetAudioInputEnabled)
* Removed redundant first line restating function names
* Kept valuable behavioral context (blocking, timeout)
Net result: 30 lines removed, improved code clarity, fixed build error1 parent dc0ccf9 commit 8debd07
4 files changed
+8
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
287 | 286 | | |
288 | 287 | | |
289 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| |||
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
| |||
293 | 288 | | |
294 | 289 | | |
295 | 290 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 291 | | |
302 | 292 | | |
303 | 293 | | |
| |||
806 | 796 | | |
807 | 797 | | |
808 | 798 | | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | 799 | | |
815 | 800 | | |
816 | 801 | | |
| |||
1007 | 992 | | |
1008 | 993 | | |
1009 | 994 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | 995 | | |
1018 | 996 | | |
1019 | 997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
| |||
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
113 | | - | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
117 | | - | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
132 | | - | |
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
| |||
140 | 135 | | |
141 | 136 | | |
142 | 137 | | |
143 | | - | |
| 138 | + | |
144 | 139 | | |
145 | 140 | | |
146 | 141 | | |
| |||
0 commit comments