Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libx86emu remove unused



details:   https://anonhg.NetBSD.org/src/rev/901be6dff260
branches:  trunk
changeset: 790786:901be6dff260
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 21:16:54 2013 +0000

description:
remove unused

diffstat:

 common/lib/libx86emu/x86emu_i8254.c |  10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diffs (31 lines):

diff -r 0788b391d822 -r 901be6dff260 common/lib/libx86emu/x86emu_i8254.c
--- a/common/lib/libx86emu/x86emu_i8254.c       Sun Oct 20 21:16:05 2013 +0000
+++ b/common/lib/libx86emu/x86emu_i8254.c       Sun Oct 20 21:16:54 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: x86emu_i8254.c,v 1.1 2007/12/21 17:45:50 joerg Exp $ */
+/* $NetBSD: x86emu_i8254.c,v 1.2 2013/10/20 21:16:54 christos Exp $ */
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -109,8 +109,6 @@
 static bool
 x86emu_i8254_out(struct x86emu_i8254_timer *timer, uint64_t curtick)
 {
-       uint16_t maxtick;
-
        /*
         * TODO:
         * Mode 0:
@@ -125,12 +123,6 @@
        if (timer->gate_high || timer->start_tick > curtick)
                return (timer->active_mode != 0);
 
-       /* Max tick based on BCD/binary mode */
-       if (timer->active_is_bcd)
-               maxtick = 9999;
-       else
-               maxtick = 0xffff;
-
        curtick -= timer->start_tick;
 
        /* Return LOW until counter is 0, afterwards HIGH until reload. */



Home | Main Index | Thread Index | Old Index