PPC: mac_nvram: Remove unused functions
authorAlexander Graf <agraf@suse.de>
Sun, 13 Jul 2014 14:50:39 +0000 (16:50 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:51 +0000 (12:50 +0200)
The macio_nvram_read and macio_nvram_write functions are never called,
just remove them.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/nvram/mac_nvram.c
hw/ppc/mac.h

index 170b10b766b5c9f5b06ad2d848021e9e8f8d8848..bcff074d81fcf02641b8defa893ed2a93f6ab187 100644 (file)
 
 #define DEF_SYSTEM_SIZE 0xc10
 
-/* Direct access to NVRAM */
-uint8_t macio_nvram_read(MacIONVRAMState *s, uint32_t addr)
-{
-    uint32_t ret;
-
-    if (addr < s->size) {
-        ret = s->data[addr];
-    } else {
-        ret = -1;
-    }
-    NVR_DPRINTF("read addr %04" PRIx32 " val %" PRIx8 "\n", addr, ret);
-
-    return ret;
-}
-
-void macio_nvram_write(MacIONVRAMState *s, uint32_t addr, uint8_t val)
-{
-    NVR_DPRINTF("write addr %04" PRIx32 " val %" PRIx8 "\n", addr, val);
-    if (addr < s->size) {
-        s->data[addr] = val;
-    }
-}
-
 /* macio style NVRAM device */
 static void macio_nvram_writeb(void *opaque, hwaddr addr,
                                uint64_t value, unsigned size)
index c1faf9ce27f7349c5fb4da342f1bed31b0d2fce1..23536f482722b5f6fdacb92f1a9ccf9fb8e587ae 100644 (file)
@@ -178,6 +178,4 @@ typedef struct MacIONVRAMState {
 } MacIONVRAMState;
 
 void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len);
-uint8_t macio_nvram_read(MacIONVRAMState *s, uint32_t addr);
-void macio_nvram_write(MacIONVRAMState *s, uint32_t addr, uint8_t val);
 #endif /* !defined(__PPC_MAC_H__) */