summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2014-01-09 11:59:37 -0500
committerPaul Fertser <fercerpav@gmail.com>2015-02-22 17:56:16 +0000
commit41124ea992b383f214d7a34766ae3c6cac74428c (patch)
tree3299670b6c5d9718627d15aa8feeb1b03541b78e /doc
parent10331d20074c4a8644919deaf9de172d9d7ad6ae (diff)
downloadopenocd-41124ea992b383f214d7a34766ae3c6cac74428c.tar.gz
openocd-41124ea992b383f214d7a34766ae3c6cac74428c.tar.xz
Remove long-deprecated "target count" and "target number" commands.
Given that the manual states that these two subcommands are deprecated and were scheduled to be removed back in 2010, remove them and the corresponding documentation from the manual. Change-Id: Iaac633349d7fcb8b7f964109c7d26dd0cc5fc233 Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-on: http://openocd.zylin.com/1860 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi28
1 files changed, 0 insertions, 28 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index e22ff1f6..9adc80f3 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -4133,22 +4133,6 @@ are examples; and there are many more.
Several commands let you examine the list of targets:
-@deffn Command {target count}
-@emph{Note: target numbers are deprecated; don't use them.
-They will be removed shortly after August 2010, including this command.
-Iterate target using @command{target names}, not by counting.}
-
-Returns the number of targets, @math{N}.
-The highest numbered target is @math{N - 1}.
-@example
-set c [target count]
-for @{ set x 0 @} @{ $x < $c @} @{ incr x @} @{
- # Assuming you have created this function
- print_target_details $x
-@}
-@end example
-@end deffn
-
@deffn Command {target current}
Returns the name of the current target.
@end deffn
@@ -4162,18 +4146,6 @@ foreach t [target names] @{
@end example
@end deffn
-@deffn Command {target number} number
-@emph{Note: target numbers are deprecated; don't use them.
-They will be removed shortly after August 2010, including this command.}
-
-The list of targets is numbered starting at zero.
-This command returns the name of the target at index @var{number}.
-@example
-set thename [target number $x]
-puts [format "Target %d is: %s\n" $x $thename]
-@end example
-@end deffn
-
@c yep, "target list" would have been better.
@c plus maybe "target setdefault".