diff options
| author | Teddy Wing | 2021-08-15 19:58:13 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-08-15 19:58:13 +0200 | 
| commit | 97534a5309fd1274f4716603ee5c207a3dbfcff4 (patch) | |
| tree | 18a8696fab60efcfbedaf15bde3d2644a3cedbf8 | |
| parent | 43eed8f077a6af734adb92f7999a6cdeff0715dd (diff) | |
| download | readline-incdec-97534a5309fd1274f4716603ee5c207a3dbfcff4.tar.bz2 | |
incdec: Remove unused variable `$previous_point_position`
Turns out this wasn't needed.
| -rw-r--r-- | incdec.pm | 2 | 
1 files changed, 0 insertions, 2 deletions
| @@ -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; | 
