Skip to content

Commit

Permalink
Sound.cpp: Remove unused internal SetOp (duplicates Event::SetOp).
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedSmoke committed Nov 9, 2024
1 parent c5333ad commit d2f19ec
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/sound/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,20 +227,6 @@ namespace Sound {
return nullptr;
}

bool SetOp(eventid id, Op op)
{
if (id == 0) return false;
bool ret = false;
SDL_LockAudioDevice(m_audioDevice);
SoundEvent *se = GetEvent(id);
if (se) {
se->op = op;
ret = true;
}
SDL_UnlockAudioDevice(m_audioDevice);
return ret;
}

static void DestroyEvent(SoundEvent *ev)
{
if (ev->oggv) {
Expand Down

0 comments on commit d2f19ec

Please sign in to comment.