From edaee4e9626223574b4432a03bc7d86f99baa205 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sat, 30 Nov 2019 16:02:50 +0000 Subject: [PATCH] remove redundant function and comments Signed-off-by: Adam Warner --- advanced/Scripts/list.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index 43f84008..7707ceea 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -74,14 +74,6 @@ Options: exit 0 } -EscapeRegexp() { - # This way we may safely insert an arbitrary - # string in our regular expressions - # This sed is intentionally executed in three steps to ease maintainability - # The first sed removes any amount of leading dots - echo $* | sed 's/^\.*//' | sed "s/[]\.|$(){}?+*^]/\\\\&/g" | sed "s/\\//\\\\\//g" -} - HandleOther() { # Convert to lowercase domain="${1,,}" @@ -122,7 +114,6 @@ ProcessDomainList() { AddDomain() { local domain num requestedListname existingTypeId existingListname - # Use printf to escape domain. %q prints the argument in a form that can be reused as shell input domain="$1" # Is the domain in the list we want to add it to? @@ -157,7 +148,6 @@ AddDomain() { RemoveDomain() { local domain num requestedListname - # Use printf to escape domain. %q prints the argument in a form that can be reused as shell input domain="$1" # Is the domain in the list we want to remove it from?