diff options
author | darkrose <lisa@ltmnet.com> | 2012-06-01 23:10:53 +1000 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:00 +0300 |
commit | c4315a7afafcc9adff945b5e63800340f6c2c008 (patch) | |
tree | 8ad98a55fa774c6c1123c1e1d463d508d6a8173d /src/nodemetadata.h | |
parent | 704782c95b8a4194a9383da55d93f37fd0f7278f (diff) | |
download | minetest-c4315a7afafcc9adff945b5e63800340f6c2c008.tar.gz minetest-c4315a7afafcc9adff945b5e63800340f6c2c008.tar.bz2 minetest-c4315a7afafcc9adff945b5e63800340f6c2c008.zip |
Strip unneeded variables from NodeMetadata
Diffstat (limited to 'src/nodemetadata.h')
-rw-r--r-- | src/nodemetadata.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/nodemetadata.h b/src/nodemetadata.h index 7fe5e2f50..e855eab9b 100644 --- a/src/nodemetadata.h +++ b/src/nodemetadata.h @@ -70,56 +70,10 @@ public: { return m_inventory; } - - // If non-empty, player can interact by using an inventory view - // See format in guiInventoryMenu.cpp. - std::string getInventoryDrawSpec() const - { - return m_inventorydrawspec; - } - void setInventoryDrawSpec(const std::string &text) - { - m_inventorydrawspec = text; - } - - // If non-empty, player can interact by using an form view - // See format in guiFormMenu.cpp. - std::string getFormSpec() const - { - return m_formspec; - } - void setFormSpec(const std::string &text) - { - m_formspec = text; - } - - // Called on client-side; shown on screen when pointed at - std::string getInfoText() const - { - return m_infotext; - } - void setInfoText(const std::string &text) - { - m_infotext = text; - } - - // Whether the related node and this metadata can be removed - bool getAllowRemoval() const - { - return m_allow_removal; - } - void setAllowRemoval(bool b) - { - m_allow_removal = b; - } private: std::map<std::string, std::string> m_stringvars; Inventory *m_inventory; - std::string m_inventorydrawspec; - std::string m_formspec; - std::string m_infotext; - bool m_allow_removal; }; |