Skip to content

Commit 17a8b03

Browse files
committedOct 8, 2024·
remove unused
1 parent 34ae4eb commit 17a8b03

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed
 

‎include/threepp/textures/Texture.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ namespace threepp {
6363
Texture(Texture&&) = delete;
6464
Texture& operator=(Texture&&) = delete;
6565

66-
std::optional<std::function<void(Texture&)>> onUpdate;
67-
6866
[[nodiscard]] const std::string& uuid() const;
6967

7068
Image& image();

‎src/threepp/renderers/gl/GLTextures.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "threepp/renderers/gl/GLCapabilities.hpp"
55
#include "threepp/renderers/gl/GLUtils.hpp"
66

7-
#include "threepp/textures/CubeTexture.hpp"
87
#include "threepp/textures/DataTexture3D.hpp"
98
#include "threepp/textures/DepthTexture.hpp"
109

@@ -202,8 +201,6 @@ void gl::GLTextures::uploadTexture(TextureProperties* textureProperties, Texture
202201
}
203202

204203
textureProperties->version = texture.version();
205-
206-
if (texture.onUpdate) texture.onUpdate.value()(texture);
207204
}
208205

209206
void gl::GLTextures::initTexture(TextureProperties* textureProperties, Texture& texture) {
@@ -379,9 +376,6 @@ void gl::GLTextures::uploadCubeTexture(TextureProperties* textureProperties, Tex
379376
}
380377

381378
textureProperties->version = texture.version();
382-
if (texture.onUpdate) {
383-
texture.onUpdate.value()(texture);
384-
}
385379
}
386380

387381
void gl::GLTextures::setupFrameBufferTexture(

0 commit comments

Comments
 (0)
Please sign in to comment.