Removed a deprecated function from NinePatchComponent.

This commit is contained in:
Leon Styhre 2021-01-15 20:26:33 +01:00
parent b0bd77eb7f
commit 755df0b10d
3 changed files with 1 additions and 5 deletions

View file

@ -22,7 +22,6 @@ ButtonComponent::ButtonComponent(
mEnabled(true),
mTextColorFocused(0xFFFFFFFF), mTextColorUnfocused(0x777777FF)
{
mBox.setIsScalable(true);
setPressedFunc(func);
setText(text, helpText);
updateImage();

View file

@ -22,8 +22,7 @@ NinePatchComponent::NinePatchComponent(
mEdgeColor(edgeColor),
mCenterColor(centerColor),
mPath(path),
mVertices(nullptr),
mIsScalable(false)
mVertices(nullptr)
{
if (!mPath.empty())
buildVertices();

View file

@ -50,7 +50,6 @@ public:
const std::string& element, unsigned int properties) override;
inline const Vector2f& getCornerSize() const { return mCornerSize; };
void setIsScalable(bool scalable) { mIsScalable = scalable; };
inline void setCornerSize(const Vector2f& size)
{
mCornerSize = size;
@ -68,7 +67,6 @@ private:
unsigned int mEdgeColor;
unsigned int mCenterColor;
std::shared_ptr<TextureResource> mTexture;
bool mIsScalable;
};
#endif // ES_CORE_COMPONENTS_NINE_PATCH_COMPONENT_H