aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-08-15 19:58:13 +0200
committerTeddy Wing2021-08-15 19:58:13 +0200
commit97534a5309fd1274f4716603ee5c207a3dbfcff4 (patch)
tree18a8696fab60efcfbedaf15bde3d2644a3cedbf8
parent43eed8f077a6af734adb92f7999a6cdeff0715dd (diff)
downloadreadline-incdec-97534a5309fd1274f4716603ee5c207a3dbfcff4.tar.bz2
incdec: Remove unused variable `$previous_point_position`
Turns out this wasn't needed.
-rw-r--r--incdec.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/incdec.pm b/incdec.pm
index bcf62e0..9772cb8 100644
--- a/incdec.pm
+++ b/incdec.pm
@@ -15,7 +15,6 @@ sub incdec {
# rather than only part of its digits.
my $line_start = '';
my $line_part = $line;
- my $previous_point_position = 0;
while ($point_position < length($line_part)) {
$line_part =~ /(\d+)/;
if ($-[0] <= $point_position && $point_position < $+[0]) {
@@ -27,7 +26,6 @@ sub incdec {
if ($point_position >= $+[0]) {
$line_start .= substr($line_part, 0, $+[0]);
$line_part = substr($line_part, $+[0]);
- $previous_point_position = $point_position;
$point_position -= $+[0];
next;