Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-11 02:49:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-11 02:49:50 +0400
commit8c1cb10cfd5e6f5edcb23a8a28db2287ed463eb4 (patch)
tree12aadbcd438d9b7bc13a9537a4c84c34f92ae03c /source/gameengine/Expressions
parent3b399edf7d903674a1c577bc69053e37f4d35933 (diff)
code cleanup: unused vars, make other vars static.
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r--source/gameengine/Expressions/PyObjectPlus.cpp4
-rw-r--r--source/gameengine/Expressions/Value.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp
index 52ad95c71b6..c025d439fc0 100644
--- a/source/gameengine/Expressions/PyObjectPlus.cpp
+++ b/source/gameengine/Expressions/PyObjectPlus.cpp
@@ -1207,8 +1207,8 @@ void PyObjectPlus::ClearDeprecationWarning()
NullDeprecationWarning();
}
-WarnLink* m_base_wlink_first= NULL;
-WarnLink* m_base_wlink_last= NULL;
+static WarnLink *m_base_wlink_first = NULL;
+static WarnLink *m_base_wlink_last = NULL;
WarnLink* PyObjectPlus::GetDeprecationWarningLinkFirst(void) {return m_base_wlink_first;}
WarnLink* PyObjectPlus::GetDeprecationWarningLinkLast(void) {return m_base_wlink_last;}
diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp
index 30a56c9165a..383e83dcd89 100644
--- a/source/gameengine/Expressions/Value.cpp
+++ b/source/gameengine/Expressions/Value.cpp
@@ -135,14 +135,14 @@ effect: deletes the object
}
-
-
+/* UNUSED */
+#if 0
#define VALUE_SUB(val1, val2) (val1)->Calc(VALUE_SUB_OPERATOR, val2)
#define VALUE_MUL(val1, val2) (val1)->Calc(VALUE_MUL_OPERATOR, val2)
#define VALUE_DIV(val1, val2) (val1)->Calc(VALUE_DIV_OPERATOR, val2)
#define VALUE_NEG(val1) (val1)->Calc(VALUE_NEG_OPERATOR, val1)
#define VALUE_POS(val1) (val1)->Calc(VALUE_POS_OPERATOR, val1)
-
+#endif
STR_String CValue::op2str(VALUE_OPERATOR op)
{