Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2019-11-30 19:02:50 +0300
committerAdam Warner <me@adamwarner.co.uk>2019-11-30 19:02:50 +0300
commitedaee4e9626223574b4432a03bc7d86f99baa205 (patch)
tree5e4c564ca46070e7ab3a2f8091f05ab36aa62d8a /advanced
parent77bfb3fb671a1049119ae3d075c450277b668187 (diff)
remove redundant function and comments
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'advanced')
-rwxr-xr-xadvanced/Scripts/list.sh10
1 files changed, 0 insertions, 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?