changeset 68:35a49b03d773

8067674: Possible dead code Summary: Removed unaccessible code from public classes Reviewed-by: snazarki Contributed-by: alexey.mironov@oracle.com
author snazarki
date Wed, 17 Dec 2014 19:01:20 +0400
parents f87ca4482faf
children 2cc12574e8b4
files src/se/classes/jdk/dio/mmio/MMIOEvent.java src/share/classes/jdk/dio/adc/MonitoringEvent.java src/share/classes/jdk/dio/counter/CountingEvent.java src/share/classes/jdk/dio/generic/GenericEvent.java src/share/classes/jdk/dio/gpio/PinEvent.java src/share/classes/jdk/dio/gpio/PortEvent.java src/share/classes/jdk/dio/modem/ModemSignalEvent.java src/share/classes/jdk/dio/pwm/GenerationEvent.java src/share/classes/jdk/dio/uart/UARTEvent.java
diffstat 9 files changed, 0 insertions(+), 78 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/jdk/dio/mmio/MMIOEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/se/classes/jdk/dio/mmio/MMIOEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -156,28 +156,6 @@
     }
 
     /**
-     * Coalesces events. Must only be called if the event has not yet been dispatched.
-     *
-     * @param <T> the type of the captured value.
-     *
-     * @param registerValue
-     *            the captured value of the register designated upon registration.
-     * @param memoryContent
-     *            the captured content of the memory area or memory block designated upon registration.
-     * @param timeStamp
-     *            the timestamp (in milliseconds).
-     * @param timeStampMicro
-     *            the additional microseconds to the timestamp.
-     */
-    <T extends Number> void addOccurence(T registerValue, ByteBuffer memoryContent, long timeStamp) {
-        this.count++;
-        this.capturedRegisterValue = registerValue;
-        this.capturedMemoryContent = memoryContent;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
-    /**
      * Gets the captured content of the memory area or memory block designated upon registration.
      *
      * @return the captured content of the memory area or block; or {@code null} if no memory area or block content was
--- a/src/share/classes/jdk/dio/adc/MonitoringEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/adc/MonitoringEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -115,13 +115,6 @@
         this.count = 1;
     }
 
-    void addOccurence(int value, long timeStamp, int timeStampMicros) {
-        this.value = value;
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns the type of range condition being notified.
      *
--- a/src/share/classes/jdk/dio/counter/CountingEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/counter/CountingEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -130,15 +130,6 @@
         }
     }
 
-    void addOccurence(int type, int value, long interval, long timeStamp) {
-        this.type = type;
-        this.value = value;
-        this.interval = interval;
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns the actual counting time interval (in microseconds). The actual counting time
      * interval may be smaller than the defined counting time interval if the count terminal value
--- a/src/share/classes/jdk/dio/generic/GenericEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/generic/GenericEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -106,12 +106,6 @@
         }
     }
 
-    void addOccurence(long timeStamp) {
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns this event ID.
      *
--- a/src/share/classes/jdk/dio/gpio/PinEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/gpio/PinEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -86,13 +86,6 @@
         this.count = 1;
     }
 
-    void addOccurence(boolean value, long timeStamp) {
-        this.value = value;
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns the new GPIO pin's value.
      *
--- a/src/share/classes/jdk/dio/gpio/PortEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/gpio/PortEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -86,13 +86,6 @@
         this.count = 1;
     }
 
-    void addOccurence(int value, long timeStamp) {
-        this.value = value;
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns the new GPIO port's value.
      *
--- a/src/share/classes/jdk/dio/modem/ModemSignalEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/modem/ModemSignalEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -109,13 +109,6 @@
         }
     }
 
-    void addOccurence(boolean signalState, long timeStamp) {
-        this.signalState = signalState;
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns the signal ID.
      *
--- a/src/share/classes/jdk/dio/pwm/GenerationEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/pwm/GenerationEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -92,13 +92,6 @@
         this.count = 1;
     }
 
-    void addOccurence(int count, long timeStamp) {
-        this.pulseCount = count;
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns the generated pulse count value.
      *
--- a/src/share/classes/jdk/dio/uart/UARTEvent.java	Tue Dec 16 13:51:58 2014 +0400
+++ b/src/share/classes/jdk/dio/uart/UARTEvent.java	Wed Dec 17 19:01:20 2014 +0400
@@ -106,12 +106,6 @@
         this.count = 1;
     }
 
-    void addOccurence(long timeStamp) {
-        this.count++;
-        this.lastTimeStamp = timeStamp;
-        this.lastTimeStampMicros = timeStampMicros;
-    }
-
     /**
      * Returns this event ID.
      *