Skip to content

Commit

Permalink
[datapipe] Remove dead code. JB#22475
Browse files Browse the repository at this point in the history
Remove unused macros:
- datapipe_get_gsize()
- datapipe_get_gbool()
- datapipe_get_gpointer()

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 19, 2018
1 parent 63953e2 commit 9ca9889
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions datapipe.h
Expand Up @@ -144,21 +144,12 @@ void mce_datapipe_quit (void);
* Macros
* ========================================================================= */

/** Retrieve a gboolean from a datapipe */
# define datapipe_get_gbool(_datapipe) (GPOINTER_TO_INT((_datapipe).dp_cached_data))

/** Retrieve a gint from a datapipe */
# define datapipe_get_gint(_datapipe) (GPOINTER_TO_INT((_datapipe).dp_cached_data))

/** Retrieve a guint from a datapipe */
# define datapipe_get_guint(_datapipe) (GPOINTER_TO_UINT((_datapipe).dp_cached_data))

/** Retrieve a gsize from a datapipe */
# define datapipe_get_gsize(_datapipe) (GPOINTER_TO_SIZE((_datapipe).dp_cached_data))

/** Retrieve a gpointer from a datapipe */
# define datapipe_get_gpointer(_datapipe) ((_datapipe).dp_cached_data)

/* Helper for making display state requests
*
* This needs to be macro so that logging context stays
Expand Down

0 comments on commit 9ca9889

Please sign in to comment.