diff options
Diffstat (limited to 'generic/tclTimer.c')
-rw-r--r-- | generic/tclTimer.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c index 711cb27..6df614e 100644 --- a/generic/tclTimer.c +++ b/generic/tclTimer.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTimer.c,v 1.30 2007/12/13 15:23:20 dgp Exp $ + * RCS: @(#) $Id: tclTimer.c,v 1.31 2008/01/22 20:52:10 dgp Exp $ */ #include "tclInt.h" @@ -1121,8 +1121,6 @@ AfterProc( AfterInfo *prevPtr; int result; Tcl_Interp *interp; - char *script; - int numBytes; /* * First remove the callback from our list of callbacks; otherwise someone @@ -1146,13 +1144,7 @@ AfterProc( interp = assocPtr->interp; Tcl_Preserve((ClientData) interp); -#if 0 - /* DKF: Why not just do this? */ result = Tcl_EvalObjEx(interp, afterPtr->commandPtr, TCL_EVAL_GLOBAL); -#else - script = Tcl_GetStringFromObj(afterPtr->commandPtr, &numBytes); - result = Tcl_EvalEx(interp, script, numBytes, TCL_EVAL_GLOBAL); -#endif if (result != TCL_OK) { Tcl_AddErrorInfo(interp, "\n (\"after\" script)"); TclBackgroundException(interp, result); |