summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-21 22:08:19 (GMT)
committerhobbs <hobbs>2001-09-21 22:08:19 (GMT)
commit9de4d4db5a8c7ff0806ee5ccf71bc69086bb8e4a (patch)
tree4f073c570ad43e2899740bf9933e020f4774dce6 /generic/tkWindow.c
parent90da2a46edc78d6f6df9f5d976199b029b1774de (diff)
downloadtk-9de4d4db5a8c7ff0806ee5ccf71bc69086bb8e4a.zip
tk-9de4d4db5a8c7ff0806ee5ccf71bc69086bb8e4a.tar.gz
tk-9de4d4db5a8c7ff0806ee5ccf71bc69086bb8e4a.tar.bz2
* generic/tkWindow.c (Tk_CreateAnonymousWindow):
* generic/tkEntry.c (GetSpinboxElement): fixed unreachable returns.
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 3a9f911..4316f31 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWindow.c,v 1.36 2001/09/21 21:34:10 hobbs Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.37 2001/09/21 22:08:19 hobbs Exp $
*/
#include "tkPort.h"
@@ -1049,8 +1049,6 @@ Tk_CreateAnonymousWindow(interp, parent, screenName)
if (NameWindow(interp, winPtr, parentPtr, (char *)NULL) != TCL_OK) {
Tk_DestroyWindow((Tk_Window) winPtr);
return NULL;
- } else {
- return (Tk_Window) winPtr;
}
return (Tk_Window) winPtr;
} else {