1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Cleanup unused engine code

This commit is contained in:
Tomasz Chabora
2020-12-08 22:51:48 +01:00
parent 90bdba576a
commit 2c048ea164
56 changed files with 4 additions and 615 deletions

View File

@@ -449,18 +449,6 @@ double ScrollBar::get_area_offset() const {
return ofs;
}
double ScrollBar::get_click_pos(const Point2 &p_pos) const {
float pos = (orientation == VERTICAL) ? p_pos.y : p_pos.x;
pos -= get_area_offset();
float area = get_area_size();
if (area == 0) {
return 0;
} else {
return pos / area;
}
}
double ScrollBar::get_grabber_offset() const {
return (get_area_size()) * get_as_ratio();
}