summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-17 07:30:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-17 07:30:54 (GMT)
commit86e88cf23394b5350460f62214d27d968ebf195e (patch)
tree89de25c865e089c6e59e6e7c7768e126fa552d60 /generic/tclObj.c
parenta038d4aad3a0cc42c2c3028f816f6e50443a42f1 (diff)
downloadtcl-86e88cf23394b5350460f62214d27d968ebf195e.zip
tcl-86e88cf23394b5350460f62214d27d968ebf195e.tar.gz
tcl-86e88cf23394b5350460f62214d27d968ebf195e.tar.bz2
Remove dead code
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index ba3c626..58eb71d 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -3780,28 +3780,6 @@ Tcl_DecrRefCount(
/*
*----------------------------------------------------------------------
*
- * TclUndoRefCount --
- *
- * Decrement the refCount of objPtr without causing it to be freed if it
- * drops from 1 to 0. This allows a function increment a refCount but
- * then decrement it and still be able to pass return it to a caller,
- * possibly with a refCount of 0. The caller must have previously
- * incremented the refCount.
- *
- *----------------------------------------------------------------------
- */
-void
-TclUndoRefCount(
- Tcl_Obj *objPtr) /* The object we are releasing a reference to. */
-{
- if (objPtr->refCount > 0) {
- --objPtr->refCount;
- }
-}
-
-/*
- *----------------------------------------------------------------------
- *
* Tcl_IsShared --
*
* Tests if the object has a ref count greater than one.