Skip to content

Commit d645697

Browse files
committed
Remove useless changes
1 parent 5b7588e commit d645697

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

clib/src/realtime.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub unsafe extern "C" fn XSynth_Realtime_SetSoundfonts(
215215
handle: XSynth_RealtimeSynth,
216216
sf_ids: *const XSynth_Soundfont,
217217
count: u64,
218-
) -> u64 {
218+
) {
219219
unsafe {
220220
let ids = std::slice::from_raw_parts(sf_ids, count as usize);
221221
let sfvec = sfids_to_vec(ids);
@@ -224,7 +224,6 @@ pub unsafe extern "C" fn XSynth_Realtime_SetSoundfonts(
224224
.send_event(SynthEvent::AllChannels(ChannelEvent::Config(
225225
ChannelConfigEvent::SetSoundfonts(sfvec),
226226
)));
227-
count
228227
}
229228
}
230229

clib/src/utils.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ pub(crate) fn convert_config_event(event: u16, params: u32) -> Result<ChannelEve
104104
let layers = convert_layers(params);
105105
ChannelConfigEvent::SetLayerCount(layers)
106106
}
107-
XSYNTH_CONFIG_SETSOUNDFONT => {
108-
let soundfonts = unsafe { sfids_to_vec(std::slice::from_raw_parts(params as _, 16)) };
109-
ChannelConfigEvent::SetSoundfonts(soundfonts)
110-
}
111107
XSYNTH_CONFIG_SETPERCUSSIONMODE => {
112108
ChannelConfigEvent::SetPercussionMode(matches!(params, 1))
113109
}

0 commit comments

Comments
 (0)