[Common] remove macro to print log
authorJaeyun Jung <jy1210.jung@samsung.com>
Wed, 21 Nov 2018 15:51:04 +0000 (00:51 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Fri, 23 Nov 2018 06:20:00 +0000 (06:20 +0000)
nnstreamer elements use gst/glib macro to print logs.
remove unnecessary macros in common header.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/tensor_common.h

index 4752e2a..631caf3 100644 (file)
@@ -391,30 +391,6 @@ extern gchar *get_tensor_dimension_string (const tensor_dim dim);
 extern size_t get_tensor_element_count (const tensor_dim dim);
 
 /**
- * @brief Make str(xyz) ==> "xyz" with macro expansion
- */
-#define str(s) xstr(s)
-#define xstr(s) #s
-
-/**
- * @brief Debug message print.
- */
-#define debug_print(cond,...) \
-  do { \
-    if ((cond) == TRUE) { \
-      g_message (__FILE__ ":" str(__LINE__) " "  __VA_ARGS__); \
-    } \
-  } while (0)
-
-/**
- * @brief Error message print.
- */
-#define err_print(...) \
-  do { \
-    g_warning (__FILE__ ":" str(__LINE__) " " __VA_ARGS__); \
-  } while (0)
-
-/**
  * @brief A callback for typefind, trying to find whether a file is other/tensors or not.
  * For the concrete definition of headers, please look at the wiki page of nnstreamer:
  * https://github.com/nnsuite/nnstreamer/wiki/Design-External-Save-Format-for-other-tensor-and-other-tensors-Stream-for-TypeFind