pan/midgard: Remove unused ld/st packing hepers
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 15:09:16 +0000 (10:09 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 15:26:35 +0000 (10:26 -0500)
Identified by cppcheck.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/helpers.h

index 9cfb9fe780f14fffe3a657a3b405ab8f45f0d9fd..cf70884bf45ed451804b1937189d151d383012f7 100644 (file)
@@ -323,22 +323,4 @@ midgard_ldst_reg(unsigned reg, unsigned component)
         return packed;
 }
 
-/* Unpacks a load/store argument */
-
-static inline midgard_ldst_register_select
-midgard_ldst_select(uint8_t u)
-{
-        midgard_ldst_register_select sel;
-        memcpy(&sel, &u, sizeof(u));
-        return sel;
-}
-
-static inline uint8_t
-midgard_ldst_pack(midgard_ldst_register_select sel)
-{
-        uint8_t packed;
-        memcpy(&packed, &sel, sizeof(packed));
-        return packed;
-}
-
 #endif