Skip to content

Commit

Permalink
ui: Removed unused functions
Browse files Browse the repository at this point in the history
Remove qemu_console_displaystate(), qemu_remove_kbd_event_handler(),
qemu_different_endianness_pixelformat() and cpkey(), since they are
completely unused.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
huth authored and Michael Tokarev committed Mar 10, 2015
1 parent c654766 commit b67072f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 36 deletions.
3 changes: 0 additions & 3 deletions include/ui/console.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ typedef struct QEMUPutLEDEntry QEMUPutLEDEntry;

QEMUPutKbdEntry *qemu_add_kbd_event_handler(QEMUPutKBDEvent *func,
void *opaque);
void qemu_remove_kbd_event_handler(QEMUPutKbdEntry *entry);
QEMUPutMouseEntry *qemu_add_mouse_event_handler(QEMUPutMouseEvent *func,
void *opaque, int absolute,
const char *name);
Expand Down Expand Up @@ -194,7 +193,6 @@ DisplaySurface *qemu_create_displaysurface_guestmem(int width, int height,
pixman_format_code_t format,
int linesize,
uint64_t addr);
PixelFormat qemu_different_endianness_pixelformat(int bpp);
PixelFormat qemu_default_pixelformat(int bpp);

DisplaySurface *qemu_create_displaysurface(int width, int height);
Expand Down Expand Up @@ -322,7 +320,6 @@ void qemu_console_resize(QemuConsole *con, int width, int height);
void qemu_console_copy(QemuConsole *con, int src_x, int src_y,
int dst_x, int dst_y, int w, int h);
DisplaySurface *qemu_console_surface(QemuConsole *con);
DisplayState *qemu_console_displaystate(QemuConsole *console);

/* sdl.c */
void sdl_display_init(DisplayState *ds, int full_screen, int no_frame);
Expand Down
12 changes: 0 additions & 12 deletions ui/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,18 +2005,6 @@ DisplaySurface *qemu_console_surface(QemuConsole *console)
return console->surface;
}

DisplayState *qemu_console_displaystate(QemuConsole *console)
{
return console->ds;
}

PixelFormat qemu_different_endianness_pixelformat(int bpp)
{
pixman_format_code_t fmt = qemu_default_pixman_format(bpp, false);
PixelFormat pf = qemu_pixelformat_from_pixman(fmt);
return pf;
}

PixelFormat qemu_default_pixelformat(int bpp)
{
pixman_format_code_t fmt = qemu_default_pixman_format(bpp, true);
Expand Down
9 changes: 0 additions & 9 deletions ui/d3des.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,6 @@ static void cookey(register unsigned long *raw1)
return;
}

void cpkey(register unsigned long *into)
{
register unsigned long *from, *endp;

from = KnL, endp = &KnL[32];
while( from < endp ) *into++ = *from++;
return;
}

void usekey(register unsigned long *from)
{
register unsigned long *to, *endp;
Expand Down
6 changes: 0 additions & 6 deletions ui/d3des.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ void usekey(unsigned long *);
* Loads the internal key register with the data in cookedkey.
*/

void cpkey(unsigned long *);
/* cookedkey[32]
* Copies the contents of the internal key register into the storage
* located at &cookedkey[0].
*/

void des(unsigned char *, unsigned char *);
/* from[8] to[8]
* Encrypts/Decrypts (according to the key currently loaded in the
Expand Down
6 changes: 0 additions & 6 deletions ui/input-legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,6 @@ QEMUPutKbdEntry *qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque)
return entry;
}

void qemu_remove_kbd_event_handler(QEMUPutKbdEntry *entry)
{
qemu_input_handler_unregister(entry->s);
g_free(entry);
}

static void legacy_mouse_event(DeviceState *dev, QemuConsole *src,
InputEvent *evt)
{
Expand Down

0 comments on commit b67072f

Please sign in to comment.