public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Trim Host.get(TaskId).
@ 2008-02-27 19:43 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-02-27 19:43 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  f0bc57dd50f9c00eddfc9b054fd9e5f2e717de36 (commit)
      from  d65cdc1ffc9f4e023508552b16a530f04c96458a (commit)

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

- Log -----------------------------------------------------------------
commit f0bc57dd50f9c00eddfc9b054fd9e5f2e717de36
Author: Andrew Cagney <cagney@redhat.com>
Date:   Wed Feb 27 14:43:04 2008 -0500

    Trim Host.get(TaskId).
    
    frysk-core/frysk/proc/ChangeLog
    2008-02-27  Andrew Cagney  <cagney@redhat.com>
    
    	* ProcEvent.java (getProcFromTaskId()): Delete.
    	* Host.java (get(TaskId)): Delete.
    	* Proc.java (getMainTask()): Use taskPool, not Host.

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

Summary of changes:
 frysk-core/frysk/proc/ChangeLog      |    4 ++++
 frysk-core/frysk/proc/Host.java      |    5 -----
 frysk-core/frysk/proc/Proc.java      |    2 +-
 frysk-core/frysk/proc/ProcEvent.java |   12 ------------
 4 files changed, 5 insertions(+), 18 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index e488180..863fd83 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,5 +1,9 @@
 2008-02-27  Andrew Cagney  <cagney@redhat.com>
 
+	* ProcEvent.java (getProcFromTaskId()): Delete.
+	* Host.java (get(TaskId)): Delete.
+	* Proc.java (getMainTask()): Use taskPool, not Host.
+
 	* ProcTasksObserver.java: Use Proc.getMainTask.  Use Log.
 
 	* Proc.java (taskPool): Make private.
diff --git a/frysk-core/frysk/proc/Host.java b/frysk-core/frysk/proc/Host.java
index 69f5891..6d15454 100644
--- a/frysk-core/frysk/proc/Host.java
+++ b/frysk-core/frysk/proc/Host.java
@@ -83,11 +83,6 @@ public abstract class Host implements Comparable {
 	logger.log(Level.FINE, "{0} removeTasks Collection\n", this);
 	taskPool.values().removeAll(c);
     }
-    public Task get(TaskId id) {
-	logger.log(Level.FINE, "{0} get TaskId\n", this);	
-	return (Task) taskPool.get(id);
-    }
-
 	
     /**
      * XXX: Should not be public.
diff --git a/frysk-core/frysk/proc/Proc.java b/frysk-core/frysk/proc/Proc.java
index f6f2b6b..3aa0a24 100644
--- a/frysk-core/frysk/proc/Proc.java
+++ b/frysk-core/frysk/proc/Proc.java
@@ -120,7 +120,7 @@ public abstract class Proc implements Comparable {
      * @return The main task for this process
      */
     public Task getMainTask() {
-	return this.host.get(new TaskId(this.getPid()));
+	return (Task) taskPool.get(new TaskId(this.getPid()));
     }
   
     /**
diff --git a/frysk-core/frysk/proc/ProcEvent.java b/frysk-core/frysk/proc/ProcEvent.java
index 79f95f4..a84da2c 100644
--- a/frysk-core/frysk/proc/ProcEvent.java
+++ b/frysk-core/frysk/proc/ProcEvent.java
@@ -69,18 +69,6 @@ public abstract class ProcEvent
     {
 	this.taskId = taskId;
     }
-    /**
-     * Find the Proc that owns the task.
-     */
-    protected Proc getProcFromTaskId ()
-    {
-	logger.log (Level.FINE, "", this); 
-	Task task = Manager.host.get (taskId);
-	if (task == null)
-	    return null;
-	proc = task.getProc();
-	return proc;
-    }
     public String toString ()
     {
 	return ("[ProcEvent"


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-27 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-27 19:43 [SCM] master: Trim Host.get(TaskId) cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).