Remove Model_GetTexture, never even used

This commit is contained in:
UnknownShadow200 2020-05-31 15:35:07 +10:00
parent e6a88393bf
commit 01572ae7af
2 changed files with 2 additions and 13 deletions

View File

@ -403,15 +403,6 @@ struct Model* Model_Get(const String* name) {
return NULL;
}
struct ModelTex* Model_GetTexture(const String* name) {
struct ModelTex* tex;
for (tex = textures_head; tex; tex = tex->next) {
if (String_CaselessEqualsConst(name, tex->name)) return tex;
}
return NULL;
}
void Model_Register(struct Model* model) {
LinkedList_Add(model, models_head, models_tail);
}

View File

@ -142,13 +142,11 @@ CC_API void Model_DrawArmPart(struct ModelPart* part);
/* Returns a pointer to the model whose name caselessly matches given name. */
CC_API struct Model* Model_Get(const String* name);
/* Returns a pointer to the model texture whose name caselessly matches given name. */
CC_API struct ModelTex* Model_GetTexture(const String* name);
/* Adds a model to the list of models. (e.g. "skeleton") */
/* Models can be applied to entities to change their appearance. Use Entity_SetModel for that. */
CC_API void Model_Register(struct Model* model);
/* Adds a texture to the list of model textures. (e.g. "skeleton.png") */
/* Model textures are automatically loaded from texture packs. Used as a 'default skin' for models. */
/* Adds a texture to the list of automatically managed model textures. */
/* These textures are automatically loaded from texture packs. (e.g. "skeleton.png") */
CC_API void Model_RegisterTexture(struct ModelTex* tex);
/* Describes data for a box being built. */