Revert "object: add create/destroy api for external object" 79/264679/1 accepted/tizen/6.5/unified/20211028.121928 accepted/tizen/unified/20210928.212639 submit/tizen/20210928.001627 submit/tizen_6.5/20211028.163101 tizen_6.5.m2_release
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 28 Sep 2021 07:00:26 +0000 (16:00 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 28 Sep 2021 07:00:43 +0000 (16:00 +0900)
This reverts commit 29f3b235eab9501d4d032a63824f68ef54cf98cc.

Change-Id: I37410a24fe9795aac1f4cd3ad5c22b2fecf417ea

src/lib/pepper/object.c
src/lib/pepper/pepper.h

index d786d20af82c96fd7d8352a2d1269f9aa9f3c357..f9be9cbf3b1032ca69708a36fce13edd1ec24963 100644 (file)
@@ -76,23 +76,6 @@ pepper_object_fini(pepper_object_t *object)
        pepper_id_allocator_free(&id_allocator, object->id);
 }
 
-PEPPER_API pepper_object_t *
-pepper_object_create(size_t size)
-{
-       pepper_object_t *object;
-
-       object = pepper_object_alloc(PEPPER_OBJECT_EXTERNAL, size);
-       PEPPER_CHECK(object, return NULL, "pepper_object_alloc() failed.\n");
-
-       return object;
-}
-
-PEPPER_API void
-pepper_object_destroy(pepper_object_t *object)
-{
-       pepper_object_fini(object);
-}
-
 /**
  * Get the type of the given object
  *
index 3672e170886cc50c4d8c52c1880388dffca579c7..597b4e9c80f20d363bffd2f728f60e7d85bbec9c 100644 (file)
@@ -288,7 +288,6 @@ typedef enum pepper_object_type {
        PEPPER_OBJECT_PLANE,        /**< #pepper_plane_t (internally used) */
        PEPPER_OBJECT_HWC,          /**< #pepper_hwc_t (internally used) */
        PEPPER_OBJECT_SUBCOMPOSITOR,/**< #pepper_compositor_t */
-       PEPPER_OBJECT_EXTERNAL,     /**< #object created outside pepper */
 } pepper_object_type_t;
 
 enum pepper_built_in_events {
@@ -808,12 +807,6 @@ struct pepper_input_event {
        double      value;      /**< pointer axis value. */
 };
 
-PEPPER_API pepper_object_t *
-pepper_object_create(size_t size);
-
-PEPPER_API void
-pepper_object_destroy(pepper_object_t *object);
-
 PEPPER_API pepper_object_type_t
 pepper_object_get_type(pepper_object_t *object);