Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Oct 8, 2024
1 parent 34ae4eb commit 17a8b03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions include/threepp/textures/Texture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ namespace threepp {
Texture(Texture&&) = delete;
Texture& operator=(Texture&&) = delete;

std::optional<std::function<void(Texture&)>> onUpdate;

[[nodiscard]] const std::string& uuid() const;

Image& image();
Expand Down
6 changes: 0 additions & 6 deletions src/threepp/renderers/gl/GLTextures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "threepp/renderers/gl/GLCapabilities.hpp"
#include "threepp/renderers/gl/GLUtils.hpp"

#include "threepp/textures/CubeTexture.hpp"
#include "threepp/textures/DataTexture3D.hpp"
#include "threepp/textures/DepthTexture.hpp"

Expand Down Expand Up @@ -202,8 +201,6 @@ void gl::GLTextures::uploadTexture(TextureProperties* textureProperties, Texture
}

textureProperties->version = texture.version();

if (texture.onUpdate) texture.onUpdate.value()(texture);
}

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

textureProperties->version = texture.version();
if (texture.onUpdate) {
texture.onUpdate.value()(texture);
}
}

void gl::GLTextures::setupFrameBufferTexture(
Expand Down

0 comments on commit 17a8b03

Please sign in to comment.