Browse Source

Remove `bool` return on `image.destroy`

gingerBill 3 years ago
parent
commit
d74e4b427d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      core/image/general_loader.odin

+ 2 - 3
core/image/general_loader.odin

@@ -45,9 +45,9 @@ load_from_file :: proc(filename: string, options := Options{}, allocator := cont
 	}
 	}
 }
 }
 
 
-destroy :: proc(img: ^Image, allocator := context.allocator) -> bool {
+destroy :: proc(img: ^Image, allocator := context.allocator) {
 	if img == nil {
 	if img == nil {
-		return true
+		return
 	}
 	}
 	context.allocator = allocator
 	context.allocator = allocator
 	destroyer := _internal_destroyers[img.which]
 	destroyer := _internal_destroyers[img.which]
@@ -58,5 +58,4 @@ destroy :: proc(img: ^Image, allocator := context.allocator) -> bool {
 		bytes.buffer_destroy(&img.pixels)
 		bytes.buffer_destroy(&img.pixels)
 		free(img)
 		free(img)
 	}
 	}
-	return true
 }
 }