music_modplug.c
changeset 542 3de4970b36d4
parent 521 565549e046b0
child 561 87bdb4c81c0b
     1.1 --- a/music_modplug.c	Tue Jan 03 16:46:05 2012 -0800
     1.2 +++ b/music_modplug.c	Wed Jan 04 00:16:03 2012 -0500
     1.3 @@ -74,21 +74,6 @@
     1.4  	ModPlug_SetMasterVolume(music->file, volume*4);
     1.5  }
     1.6  
     1.7 -/* Load a modplug stream from the given file */
     1.8 -modplug_data *modplug_new(const char *file)
     1.9 -{
    1.10 -	SDL_RWops *rw;
    1.11 -
    1.12 -	rw = SDL_RWFromFile(file, "rb");
    1.13 -	if ( rw == NULL ) {
    1.14 -		/* FIXME: Free rw, need to free on delete */
    1.15 -		SDL_SetError("Couldn't open %s", file);
    1.16 -		return NULL;
    1.17 -	}
    1.18 -	return modplug_new_RW(rw, 1);
    1.19 -
    1.20 -}
    1.21 -
    1.22  /* Load a modplug stream from an SDL_RWops object */
    1.23  modplug_data *modplug_new_RW(SDL_RWops *rw, int freerw)
    1.24  {