Remove unused function in browser

This commit is contained in:
Ylva Selling
2024-07-11 13:31:53 +02:00
parent e1127709c4
commit f6fe49aa02
2 changed files with 5 additions and 7 deletions

View File

@@ -73,10 +73,11 @@ public:
void reload();
void updateBrowserSize();
void updateBrowserDimensions();
// Ratio x, y relative to each other. Y is kept constant
void setRatio(float ratio);
float browserRatio() const;
// Dimensions in pixels
glm::ivec2 browserDimensions() const;
void setBrowserDimensions(glm::ivec2 dimensions);
@@ -95,6 +96,8 @@ protected:
bool _shouldReload = false;
private:
void updateBrowserDimensions();
class RenderHandler : public WebRenderHandler {
public:
void draw() override;

View File

@@ -185,11 +185,6 @@ bool Browser::isReady() const {
return _texture.get();
}
// Updates the browser size to match the size of the texture
void Browser::updateBrowserSize() {
_browserDimensions = _texture->dimensions();
}
void Browser::reload() {
_reload.trigger();
}