* timevar.h (timevar_get): Remove.
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2004 00:49:14 +0000 (00:49 +0000)
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2004 00:49:14 +0000 (00:49 +0000)
* timevar.c (timevar_get): Remove unused function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89975 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/timevar.c
gcc/timevar.h

index 5a9ffca..779da12 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-02  Ben Elliston  <bje@au.ibm.com>
+
+       * timevar.h (timevar_get): Remove. 
+       * timevar.c (timevar_get): Remove unused function.
+
 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
 
        * doc/include/texinfo.tex: Update from Texinfo CVS.
index 65323eb..43f8832 100644 (file)
@@ -371,31 +371,6 @@ timevar_stop (timevar_id_t timevar)
   timevar_accumulate (&tv->elapsed, &tv->start_time, &now);
 }
 
-/* Fill the elapsed time for TIMEVAR into ELAPSED.  Returns
-   update-to-date information even if TIMEVAR is currently running.  */
-
-void
-timevar_get (timevar_id_t timevar, struct timevar_time_def *elapsed)
-{
-  struct timevar_def *tv = &timevars[timevar];
-  struct timevar_time_def now;
-
-  *elapsed = tv->elapsed;
-
-  /* Is TIMEVAR currently running as a standalone timer?  */
-  if (tv->standalone)
-    {
-      get_time (&now);
-      timevar_accumulate (elapsed, &tv->start_time, &now);
-    }
-  /* Or is TIMEVAR at the top of the timer stack?  */
-  else if (stack->timevar == tv)
-    {
-      get_time (&now);
-      timevar_accumulate (elapsed, &start_time, &now);
-    }
-}
-
 /* Summarize timing variables to FP.  The timing variable TV_TOTAL has
    a special meaning -- it's considered to be the total elapsed time,
    for normalizing the others, and is displayed last.  */
index 6f40ec0..f78ab19 100644 (file)
@@ -84,7 +84,6 @@ extern void timevar_push (timevar_id_t);
 extern void timevar_pop (timevar_id_t);
 extern void timevar_start (timevar_id_t);
 extern void timevar_stop (timevar_id_t);
-extern void timevar_get (timevar_id_t, struct timevar_time_def *);
 extern void timevar_print (FILE *);
 
 /* Provided for backward compatibility.  */