summaryrefslogtreecommitdiff
path: root/src/texture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/texture.rs')
-rw-r--r--src/texture.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/texture.rs b/src/texture.rs
index ee9ff26..293a202 100644
--- a/src/texture.rs
+++ b/src/texture.rs
@@ -210,11 +210,6 @@ impl TextureAtlas {
format: ImageFormat,
) -> Result<TextureId, TextureError> {
let img = image::load_from_memory_with_format(buf, format.format())?.into_rgba8();
- Ok(self.pack_rgba8(img)?)
- }
-
- /// Add a new subtexture
- pub fn pack_rgba8(&mut self, img: RgbaImage) -> Result<TextureId, PackError> {
let id = TextureId::new();
self.packer.pack_own(id, img).map_err(PackError)?;
Ok(id)