summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-12-19 14:21:42 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-12-19 14:21:42 (GMT)
commit18131f9c09f735616d65001add027710eee6ad27 (patch)
tree273d3f760d2c88e870b3fce613b0f384df53ad1f /generic/tclParse.c
parentbaf649278ac11f772a6921121574bb6fe65ed127 (diff)
downloadtcl-18131f9c09f735616d65001add027710eee6ad27.zip
tcl-18131f9c09f735616d65001add027710eee6ad27.tar.gz
tcl-18131f9c09f735616d65001add027710eee6ad27.tar.bz2
With no callers left, TclIsLocalScalar() is removed.
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index 025304c..c07336f 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -2563,56 +2563,6 @@ TclObjCommandComplete(
}
/*
- *----------------------------------------------------------------------
- *
- * TclIsLocalScalar --
- *
- * Check to see if a given string is a legal scalar variable name with no
- * namespace qualifiers or substitutions.
- *
- * Results:
- * Returns 1 if the variable is a local scalar.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
-int
-TclIsLocalScalar(
- const char *src,
- int len)
-{
- const char *p;
- const char *lastChar = src + (len - 1);
-
- for (p=src ; p<=lastChar ; p++) {
- if ((CHAR_TYPE(*p) != TYPE_NORMAL) &&
- (CHAR_TYPE(*p) != TYPE_COMMAND_END)) {
- /*
- * TCL_COMMAND_END is returned for the last character of the
- * string. By this point we know it isn't an array or namespace
- * reference.
- */
-
- return 0;
- }
- if (*p == '(') {
- if (*lastChar == ')') { /* We have an array element */
- return 0;
- }
- } else if (*p == ':') {
- if ((p != lastChar) && *(p+1) == ':') { /* qualified name */
- return 0;
- }
- }
- }
-
- return 1;
-}
-
-/*
* Local Variables:
* mode: c
* c-basic-offset: 4