Remove unused fluid_track_* methods

fluid_track_count_events
fluid_track_first_event
fluid_track_get_name
This commit is contained in:
Marcus Weseloh 2017-11-24 11:09:34 +01:00
parent 5f6003e465
commit f1d28bdeb9
2 changed files with 0 additions and 39 deletions

View file

@ -1093,15 +1093,6 @@ fluid_track_set_name(fluid_track_t *track, char *name)
return FLUID_OK;
}
/*
* fluid_track_get_name
*/
char *
fluid_track_get_name(fluid_track_t *track)
{
return track->name;
}
/*
* fluid_track_get_duration
*/
@ -1117,24 +1108,6 @@ fluid_track_get_duration(fluid_track_t *track)
return time;
}
/*
* fluid_track_count_events
*/
int
fluid_track_count_events(fluid_track_t *track, int *on, int *off)
{
fluid_midi_event_t *evt = track->first;
while (evt != NULL) {
if (evt->type == NOTE_ON) {
(*on)++;
} else if (evt->type == NOTE_OFF) {
(*off)++;
}
evt = evt->next;
}
return FLUID_OK;
}
/*
* fluid_track_add_event
*/
@ -1153,16 +1126,6 @@ fluid_track_add_event(fluid_track_t *track, fluid_midi_event_t *evt)
return FLUID_OK;
}
/*
* fluid_track_first_event
*/
fluid_midi_event_t *
fluid_track_first_event(fluid_track_t *track)
{
track->cur = track->first;
return track->cur;
}
/*
* fluid_track_next_event
*/

View file

@ -250,9 +250,7 @@ typedef struct _fluid_track_t fluid_track_t;
fluid_track_t* new_fluid_track(int num);
void delete_fluid_track(fluid_track_t* track);
int fluid_track_set_name(fluid_track_t* track, char* name);
char* fluid_track_get_name(fluid_track_t* track);
int fluid_track_add_event(fluid_track_t* track, fluid_midi_event_t* evt);
fluid_midi_event_t* fluid_track_first_event(fluid_track_t* track);
fluid_midi_event_t* fluid_track_next_event(fluid_track_t* track);
int fluid_track_get_duration(fluid_track_t* track);
int fluid_track_reset(fluid_track_t* track);