From 0f25bc842c40747fed7dbc95f395cd8702df5e98 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sat, 23 Oct 2021 23:36:48 +0800 Subject: [PATCH] Remove unnecessary function --- extensions/fairygui/ScrollPane.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/extensions/fairygui/ScrollPane.cpp b/extensions/fairygui/ScrollPane.cpp index 924ed85e17..f976666c30 100644 --- a/extensions/fairygui/ScrollPane.cpp +++ b/extensions/fairygui/ScrollPane.cpp @@ -18,7 +18,6 @@ static const float TWEEN_TIME_DEFAULT = 0.3f; //min tween time for inertial scro static const float PULL_RATIO = 0.5f; //pull down/up ratio static inline float sp_getField(const Vec2& pt, int axis) { return axis == 0 ? pt.x : pt.y; } -static inline float sp_getField(const cocos2d::Size& sz, int axis) { return axis == 0 ? sz.width : sz.height; } static void sp_setField(Vec2& pt, int axis, float value) { if (axis == 0)