Browse Source

Remove unused function in Object.pkg.

Aster Jian 12 years ago
parent
commit
9e7bfd2c1f
1 changed files with 11 additions and 9 deletions
  1. 11 9
      Extras/LuaScript/pkgs/Core/Object.pkg

+ 11 - 9
Extras/LuaScript/pkgs/Core/Object.pkg

@@ -7,20 +7,17 @@ class Object : public RefCounted
     // virtual const String& GetTypeName() const;
     tolua_outside const char* ObjectGetTypeName @ GetTypeName() const;
     
+    const String& GetCategory() const;
+    tolua_outside const char* ObjectGetCategory @ GetCategory() const;
+    
     // void SendEvent(StringHash eventType);
     tolua_outside void ObjectSendEvent @ SendEvent(const char* eventName);
-
+    
     // void SendEvent(StringHash eventType, VariantMap& eventData);
     tolua_outside void ObjectSendEvent @ SendEvent(const char* eventName, VariantMap& eventData);
     
-    Context* GetContext() const;
-    Object* GetEventSender() const;
-    EventHandler* GetEventHandler() const;
-    const String& GetCategory() const;
-    
-    tolua_readonly tolua_property__get_set Context* context;
-    tolua_readonly tolua_property__get_set Object* eventSender;
-    tolua_readonly tolua_property__get_set EventHandler* eventHandler;
+    tolua_readonly tolua_property__get_set ShortStringHash type;
+    tolua_readonly tolua_property__get_set String& typeName;
     tolua_readonly tolua_property__get_set String& category;
 };
 
@@ -31,6 +28,11 @@ static const char* ObjectGetTypeName(const Object* object)
     return object->GetTypeName().CString();
 }
 
+static const char* ObjectGetCategory(const Object* object)
+{
+    return object->GetCategory().CString();
+}
+
 static void ObjectSendEvent(Object* object, const char* eventName)
 {
     object->SendEvent(StringHash(eventName));