Cleanup: unused function, spelling

This commit is contained in:
Campbell Barton
2019-12-13 09:03:07 +11:00
parent ce87abbc95
commit 123744e432
3 changed files with 3 additions and 17 deletions

View File

@@ -119,20 +119,6 @@ static bScreen *screen_parent_find(const bScreen *screen)
return NULL;
}
static int cmp_image_tile(const void *a, const void *b)
{
const ImageTile *tile_a = a;
const ImageTile *tile_b = b;
if (tile_a->tile_number < tile_b->tile_number) {
return -1;
}
if (tile_a->tile_number > tile_b->tile_number) {
return 1;
}
return 0;
}
static void do_version_workspaces_create_from_screens(Main *bmain)
{
for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) {

View File

@@ -1280,8 +1280,8 @@ static void draw_viewport_name(ARegion *ar, View3D *v3d, int xoffset, int *yoffs
}
/**
* draw info beside axes in bottom left-corner:
* framenum, collection, object name, bone name (if available), marker name (if available)
* Draw info beside axes in bottom left-corner:
* frame-number, collection, object name, bone name (if available), marker name (if available).
*/
static void draw_selected_name(

View File

@@ -482,7 +482,7 @@ GPUTexture *GPU_texture_from_blender(Image *ima, ImageUser *iuser, int textarget
/* TODO(lukas): When a tile gets deleted, the materials using the image
* aren't rebuilt and therefore continue to use it.
* This workaround isn't ideal, the result should be a pink color
* (for a missing tile). With the current behaviour, new tiles also won't
* (for a missing tile). With the current behavior, new tiles also won't
* be detected. */
tile = BKE_image_get_tile(ima, 0);
}