removed unused variable
This commit is contained in:
parent
09880ae7fe
commit
04ea4dd952
4
qq2clone
4
qq2clone
|
@ -2222,14 +2222,12 @@ convert_to_seq ()
|
||||||
# PARAMETERS: $1: A set
|
# PARAMETERS: $1: A set
|
||||||
#=========================================================================#
|
#=========================================================================#
|
||||||
{
|
{
|
||||||
local s="$1"
|
|
||||||
|
|
||||||
{ [[ "$1" =~ ^[,-] ]] || [[ "$1" =~ [,-'^']$ ]] ||
|
{ [[ "$1" =~ ^[,-] ]] || [[ "$1" =~ [,-'^']$ ]] ||
|
||||||
[[ "$1" =~ [,-][,-] ]] || [[ "$1" =~ [[:space:]] ]] ||
|
[[ "$1" =~ [,-][,-] ]] || [[ "$1" =~ [[:space:]] ]] ||
|
||||||
[[ "$1" =~ ^.(.*[^',']\^) ]]; } && return 1
|
[[ "$1" =~ ^.(.*[^',']\^) ]]; } && return 1
|
||||||
|
|
||||||
declare -a parts
|
declare -a parts
|
||||||
IFS="," read -ra parts <<<"$s"
|
IFS="," read -ra parts <<<"$1"
|
||||||
local states i p not LH RH minus plus
|
local states i p not LH RH minus plus
|
||||||
states="$(list_states| tr " " "|")"
|
states="$(list_states| tr " " "|")"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue