summaryrefslogtreecommitdiffstats
path: root/server/red_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/red_common.h')
-rw-r--r--server/red_common.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/server/red_common.h b/server/red_common.h
index 47e591d2..04d4c027 100644
--- a/server/red_common.h
+++ b/server/red_common.h
@@ -44,17 +44,4 @@ static const LzImageType MAP_BITMAP_FMT_TO_LZ_IMAGE_TYPE[] = {
LZ_IMAGE_TYPE_A8
};
-static inline int bitmap_fmt_is_rgb(uint8_t fmt)
-{
- static const int BITMAP_FMT_IS_RGB[SPICE_BITMAP_FMT_ENUM_END] =
- {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1};
-
- if (fmt >= SPICE_BITMAP_FMT_ENUM_END) {
- spice_warning("fmt >= SPICE_BITMAP_FMT_ENUM_END; %d >= %d",
- fmt, SPICE_BITMAP_FMT_ENUM_END);
- return 0;
- }
- return BITMAP_FMT_IS_RGB[fmt];
-}
-
#endif