diff options
author | Chris Robinson <[email protected]> | 2014-01-03 19:35:55 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-03 19:35:55 -0800 |
commit | 3a31402b1ea3cb62da6ddcac3f41570c7cfaa687 (patch) | |
tree | 51e614db41863544da09323b5569b966b59a7771 /Alc/midi | |
parent | d9846f321987230e16e09ac643f50dba893abd70 (diff) |
Remove an unused method
Diffstat (limited to 'Alc/midi')
-rw-r--r-- | Alc/midi/base.c | 12 | ||||
-rw-r--r-- | Alc/midi/base.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/Alc/midi/base.c b/Alc/midi/base.c index e459b952..f6a9b5c7 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -151,18 +151,6 @@ void MidiSynth_Destruct(MidiSynth *self) ResetEvtQueue(&self->EventQueue); } -const char *MidiSynth_getFontName(const MidiSynth* UNUSED(self), const char *filename) -{ - if(!filename || !filename[0]) - filename = getenv("ALSOFT_SOUNDFONT"); - if(!filename || !filename[0]) - filename = GetConfigValue("midi", "soundfont", ""); - if(!filename[0]) - WARN("No default soundfont found\n"); - - return filename; -} - ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCdevice *device, ALsizei count, const ALuint *ids) { ALsoundfont **sfonts; diff --git a/Alc/midi/base.h b/Alc/midi/base.h index 7dc80395..e9245887 100644 --- a/Alc/midi/base.h +++ b/Alc/midi/base.h @@ -52,7 +52,6 @@ typedef struct MidiSynth { void MidiSynth_Construct(MidiSynth *self, ALCdevice *device); void MidiSynth_Destruct(MidiSynth *self); -const char *MidiSynth_getFontName(const MidiSynth *self, const char *filename); ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCdevice *device, ALsizei count, const ALuint *ids); inline void MidiSynth_setGain(MidiSynth *self, ALfloat gain) { self->Gain = gain; } inline ALfloat MidiSynth_getGain(const MidiSynth *self) { return self->Gain; } |