summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-12-03 13:02:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-12-03 13:02:08 (GMT)
commit3ff398393a61d9fe1b2b7465c1d88404dbf0fe76 (patch)
tree515111b57bddc5e1a580a0ce3a02845d3e2eba47 /generic/tclEncoding.c
parentef0bb68bcb7408ec078badf8cacadd093cd1eac8 (diff)
downloadtcl-3ff398393a61d9fe1b2b7465c1d88404dbf0fe76.zip
tcl-3ff398393a61d9fe1b2b7465c1d88404dbf0fe76.tar.gz
tcl-3ff398393a61d9fe1b2b7465c1d88404dbf0fe76.tar.bz2
Remove obsolete functions Tcl_GetDefaultEncodingDir and Tcl_SetDefaultEncodingDir
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 7a55724..d2c7bc8 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -672,68 +672,6 @@ TclFinalizeEncodingSubsystem(void)
/*
*-------------------------------------------------------------------------
*
- * Tcl_GetDefaultEncodingDir --
- *
- * Legacy public interface to retrieve first directory in the encoding
- * searchPath.
- *
- * Results:
- * The directory pathname, as a string, or NULL for an empty encoding
- * search path.
- *
- * Side effects:
- * None.
- *
- *-------------------------------------------------------------------------
- */
-
-const char *
-Tcl_GetDefaultEncodingDir(void)
-{
- int numDirs;
- Tcl_Obj *first, *searchPath = Tcl_GetEncodingSearchPath();
-
- Tcl_ListObjLength(NULL, searchPath, &numDirs);
- if (numDirs == 0) {
- return NULL;
- }
- Tcl_ListObjIndex(NULL, searchPath, 0, &first);
-
- return Tcl_GetString(first);
-}
-
-/*
- *-------------------------------------------------------------------------
- *
- * Tcl_SetDefaultEncodingDir --
- *
- * Legacy public interface to set the first directory in the encoding
- * search path.
- *
- * Results:
- * None.
- *
- * Side effects:
- * Modifies the encoding search path.
- *
- *-------------------------------------------------------------------------
- */
-
-void
-Tcl_SetDefaultEncodingDir(
- const char *path)
-{
- Tcl_Obj *searchPath = Tcl_GetEncodingSearchPath();
- Tcl_Obj *directory = Tcl_NewStringObj(path, -1);
-
- searchPath = Tcl_DuplicateObj(searchPath);
- Tcl_ListObjReplace(NULL, searchPath, 0, 0, 1, &directory);
- Tcl_SetEncodingSearchPath(searchPath);
-}
-
-/*
- *-------------------------------------------------------------------------
- *
* Tcl_GetEncoding --
*
* Given the name of a encoding, find the corresponding Tcl_Encoding