summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c48
1 files changed, 1 insertions, 47 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index ed505f7..45c08da 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -413,52 +413,6 @@ Tcl_SetEncodingSearchPath(
}
/*
- *----------------------------------------------------------------------
- *
- * TclGetLibraryPath --
- *
- * Keeps the per-thread copy of the library path current with changes to
- * the global copy.
- *
- * Results:
- * Returns a "list" (Tcl_Obj *) that contains the library path.
- *
- *----------------------------------------------------------------------
- */
-
-Tcl_Obj *
-TclGetLibraryPath(void)
-{
- return TclGetProcessGlobalValue(&libraryPath);
-}
-
-/*
- *----------------------------------------------------------------------
- *
- * TclSetLibraryPath --
- *
- * Keeps the per-thread copy of the library path current with changes to
- * the global copy.
- *
- * Since the result of this routine is void, if searchPath is not a valid
- * list this routine silently does nothing.
- *
- *----------------------------------------------------------------------
- */
-
-void
-TclSetLibraryPath(
- Tcl_Obj *path)
-{
- Tcl_Size dummy;
-
- if (TCL_ERROR == TclListObjLengthM(NULL, path, &dummy)) {
- return;
- }
- TclSetProcessGlobalValue(&libraryPath, path, NULL);
-}
-
-/*
*---------------------------------------------------------------------------
*
* FillEncodingFileMap --
@@ -4327,7 +4281,7 @@ InitializeEncodingSearchPath(
TclNewObj(searchPathObj);
Tcl_IncrRefCount(encodingObj);
Tcl_IncrRefCount(searchPathObj);
- libPathObj = TclGetLibraryPath();
+ libPathObj = TclGetProcessGlobalValue(&libraryPath);
Tcl_IncrRefCount(libPathObj);
TclListObjLengthM(NULL, libPathObj, &numDirs);