diff options
author | ROllerozxa <temporaryemail4meh+github@gmail.com> | 2021-12-29 23:00:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 23:00:16 +0100 |
commit | 05573d6d8d9e5a756ab1b03b159b127144f8e775 (patch) | |
tree | 1fe59540a74cf26e6829621a9955449196002124 /src/gui/guiSkin.cpp | |
parent | 9b650b9efb1d4617c97e86639ff115067a73e83a (diff) | |
download | minetest-05573d6d8d9e5a756ab1b03b159b127144f8e775.tar.gz minetest-05573d6d8d9e5a756ab1b03b159b127144f8e775.tar.bz2 minetest-05573d6d8d9e5a756ab1b03b159b127144f8e775.zip |
Remove unused (de)serializeAttributes() methods
Diffstat (limited to 'src/gui/guiSkin.cpp')
-rw-r--r-- | src/gui/guiSkin.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/gui/guiSkin.cpp b/src/gui/guiSkin.cpp index e09209bd9..ca692f6cb 100644 --- a/src/gui/guiSkin.cpp +++ b/src/gui/guiSkin.cpp @@ -1024,48 +1024,6 @@ void GUISkin::draw2DRectangle(IGUIElement* element, }
-//! Writes attributes of the object.
-//! Implement this to expose the attributes of your scene node animator for
-//! scripting languages, editors, debuggers or xml serialization purposes.
-void GUISkin::serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const
-{
- u32 i;
- for (i=0; i<EGDC_COUNT; ++i)
- out->addColor(GUISkinColorNames[i], Colors[i]);
-
- for (i=0; i<EGDS_COUNT; ++i)
- out->addInt(GUISkinSizeNames[i], Sizes[i]);
-
- for (i=0; i<EGDT_COUNT; ++i)
- out->addString(GUISkinTextNames[i], Texts[i].c_str());
-
- for (i=0; i<EGDI_COUNT; ++i)
- out->addInt(GUISkinIconNames[i], Icons[i]);
-}
-
-
-//! Reads attributes of the object.
-//! Implement this to set the attributes of your scene node animator for
-//! scripting languages, editors, debuggers or xml deserialization purposes.
-void GUISkin::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options)
-{
- // TODO: This is not nice code for downward compatibility, whenever new values are added and users
- // load an old skin the corresponding values will be set to 0.
- u32 i;
- for (i=0; i<EGDC_COUNT; ++i)
- Colors[i] = in->getAttributeAsColor(GUISkinColorNames[i]);
-
- for (i=0; i<EGDS_COUNT; ++i)
- Sizes[i] = in->getAttributeAsInt(GUISkinSizeNames[i]);
-
- for (i=0; i<EGDT_COUNT; ++i)
- Texts[i] = in->getAttributeAsStringW(GUISkinTextNames[i]);
-
- for (i=0; i<EGDI_COUNT; ++i)
- Icons[i] = in->getAttributeAsInt(GUISkinIconNames[i]);
-}
-
-
//! gets the colors
// PATCH
void GUISkin::getColors(video::SColor* colors)
|