[SCM] master: Delete unused BankRegister.reverseArray(byte[]).

cagney@sourceware.org cagney@sourceware.org
Tue Dec 4 17:21:00 GMT 2007


The branch, master has been updated
       via  3ae096b75d439f4393d54301b710e59db13c0670 (commit)
       via  6e5772a738ca302a116c7ec1d483c938914307e4 (commit)
      from  0117109d888c8dc04b868549766f00255b5f94c5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 3ae096b75d439f4393d54301b710e59db13c0670
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Dec 4 12:21:28 2007 -0500

    Delete unused BankRegister.reverseArray(byte[]).
    
    frysk-core/frysk/proc/ChangeLog
    2007-12-04  Andrew Cagney  <cagney@redhat.com>
    
    	* BankRegister.java (reverseArray(byte[])): Delete.

commit 6e5772a738ca302a116c7ec1d483c938914307e4
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Dec 4 12:00:59 2007 -0500

    Delete unused BankRegister.getFIXME(Task).
    
    frysk-core/frysk/proc/ChangeLog
    2007-12-04  Andrew Cagney  <cagney@redhat.com>
    
    	* BankRegister.java (getFIXME(Task)): Delete.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/BankRegister.java |   31 -------------------------------
 frysk-core/frysk/proc/ChangeLog         |    4 ++++
 2 files changed, 4 insertions(+), 31 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/BankRegister.java b/frysk-core/frysk/proc/BankRegister.java
index 26f134c..41c8b30 100644
--- a/frysk-core/frysk/proc/BankRegister.java
+++ b/frysk-core/frysk/proc/BankRegister.java
@@ -39,8 +39,6 @@
 
 package frysk.proc;
 
-import inua.eio.ByteBuffer;
-import inua.eio.ByteOrder;
 import frysk.isa.Register;
 
 /**
@@ -53,16 +51,6 @@ public class BankRegister {
     private final String name;
     private final Register register;
   
-    // Does this really not exist somewhere else?
-    private static void reverseArray(byte[] array) {
-	for (int left = 0, right = array.length - 1;
-	     left < right; left++, right--) {
-	    byte temp = array[right];
-	    array[right] = array[left];
-	    array[left] = temp;
-	}
-    }
-  
     private BankRegister(int bank, int offset, int length,
 			 Register register, String name) {
 	this.bank = bank;
@@ -97,25 +85,6 @@ public class BankRegister {
     }
 
     /**
-     * Get the value of the register as a long.
-     *
-     * @param task the task object supplying the ByteBuffer for reading
-     * the register
-     * @return value of register
-     */
-    long getFIXME(frysk.proc.Task task) {
-	ByteBuffer b = task.getRegisterBuffersFIXME()[bank];
-	long val = 0;
-	byte[] bytes = new byte[length];
-	b.get(offset, bytes, 0, length);
-	if (b.order() == ByteOrder.LITTLE_ENDIAN)
-	    reverseArray(bytes);
-	for (int i = 0; i < length; i++) 
-	    val = val << 8 | (bytes[i] & 0xff);
-	return val;
-    }
-
-    /**
      * Get the name of the register.
      *
      * @return the name
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index 6dba826..d833fd9 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,5 +1,9 @@
 2007-12-04  Andrew Cagney  <cagney@redhat.com>
 
+	* BankRegister.java (reverseArray(byte[])): Delete.	
+
+	* BankRegister.java (getFIXME(Task)): Delete.
+
 	* LinuxPowerPCSyscall.java: Delete.
 	* LinuxPPC32Syscall.java: New; based on LinuxPowerPCSyscall.java.
 	* LinuxPPC64Syscall.java: New; based on LinuxPowerPCSyscall.java.


hooks/post-receive
--
frysk system monitor/debugger



More information about the Frysk-cvs mailing list