summaryrefslogtreecommitdiff
path: root/src/irrlicht_changes
diff options
context:
space:
mode:
authorROllerozxa <temporaryemail4meh+github@gmail.com>2021-12-29 23:00:16 +0100
committerGitHub <noreply@github.com>2021-12-29 23:00:16 +0100
commit05573d6d8d9e5a756ab1b03b159b127144f8e775 (patch)
tree1fe59540a74cf26e6829621a9955449196002124 /src/irrlicht_changes
parent9b650b9efb1d4617c97e86639ff115067a73e83a (diff)
downloadminetest-05573d6d8d9e5a756ab1b03b159b127144f8e775.tar.gz
minetest-05573d6d8d9e5a756ab1b03b159b127144f8e775.tar.bz2
minetest-05573d6d8d9e5a756ab1b03b159b127144f8e775.zip
Remove unused (de)serializeAttributes() methods
Diffstat (limited to 'src/irrlicht_changes')
-rw-r--r--src/irrlicht_changes/static_text.cpp44
-rw-r--r--src/irrlicht_changes/static_text.h6
2 files changed, 0 insertions, 50 deletions
diff --git a/src/irrlicht_changes/static_text.cpp b/src/irrlicht_changes/static_text.cpp
index 8908a91f7..f548c3f71 100644
--- a/src/irrlicht_changes/static_text.cpp
+++ b/src/irrlicht_changes/static_text.cpp
@@ -588,50 +588,6 @@ s32 StaticText::getTextWidth() const
}
-//! Writes attributes of the element.
-//! Implement this to expose the attributes of your element for
-//! scripting languages, editors, debuggers or xml serialization purposes.
-void StaticText::serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const
-{
- IGUIStaticText::serializeAttributes(out,options);
-
- out->addBool ("Border", Border);
- out->addBool ("OverrideColorEnabled",true);
- out->addBool ("OverrideBGColorEnabled",ColoredText.hasBackground());
- out->addBool ("WordWrap", WordWrap);
- out->addBool ("Background", Background);
- out->addBool ("RightToLeft", RightToLeft);
- out->addBool ("RestrainTextInside", RestrainTextInside);
- out->addColor ("OverrideColor", ColoredText.getDefaultColor());
- out->addColor ("BGColor", ColoredText.getBackground());
- out->addEnum ("HTextAlign", HAlign, GUIAlignmentNames);
- out->addEnum ("VTextAlign", VAlign, GUIAlignmentNames);
-
- // out->addFont ("OverrideFont", OverrideFont);
-}
-
-
-//! Reads attributes of the element
-void StaticText::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0)
-{
- IGUIStaticText::deserializeAttributes(in,options);
-
- Border = in->getAttributeAsBool("Border");
- setWordWrap(in->getAttributeAsBool("WordWrap"));
- Background = in->getAttributeAsBool("Background");
- RightToLeft = in->getAttributeAsBool("RightToLeft");
- RestrainTextInside = in->getAttributeAsBool("RestrainTextInside");
- if (in->getAttributeAsBool("OverrideColorEnabled"))
- ColoredText.setDefaultColor(in->getAttributeAsColor("OverrideColor"));
- if (in->getAttributeAsBool("OverrideBGColorEnabled"))
- ColoredText.setBackground(in->getAttributeAsColor("BGColor"));
-
- setTextAlignment( (EGUI_ALIGNMENT) in->getAttributeAsEnumeration("HTextAlign", GUIAlignmentNames),
- (EGUI_ALIGNMENT) in->getAttributeAsEnumeration("VTextAlign", GUIAlignmentNames));
-
- // OverrideFont = in->getAttributeAsFont("OverrideFont");
-}
-
} // end namespace gui
#endif // USE_FREETYPE
diff --git a/src/irrlicht_changes/static_text.h b/src/irrlicht_changes/static_text.h
index 83bbf4c3d..17a3bf753 100644
--- a/src/irrlicht_changes/static_text.h
+++ b/src/irrlicht_changes/static_text.h
@@ -184,12 +184,6 @@ namespace gui
//! Checks if the text should be interpreted as right-to-left text
virtual bool isRightToLeft() const;
- //! Writes attributes of the element.
- virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
-
- //! Reads attributes of the element
- virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
-
virtual bool hasType(EGUI_ELEMENT_TYPE t) const {
return (t == EGUIET_ENRICHED_STATIC_TEXT) || (t == EGUIET_STATIC_TEXT);
};