Pull request: - isdelve: remove unused package

Merge in DNS/adguard-home from remove-isdelve to master

Squashed commit of the following:

commit aa305fa46713b39a8299754e8fd557cbadcb7cc3
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Nov 6 18:06:07 2020 +0300

    - isdelve: remove unused package
This commit is contained in:
Ainar Garipov 2020-11-06 20:20:15 +03:00
parent 298f74ba81
commit eefa553100
4 changed files with 1 additions and 19 deletions

View File

@ -26,8 +26,6 @@ import (
"github.com/AdguardTeam/AdGuardHome/internal/update"
"github.com/AdguardTeam/AdGuardHome/internal/util"
"github.com/AdguardTeam/AdGuardHome/internal/isdelve"
"github.com/AdguardTeam/AdGuardHome/internal/dhcpd"
"github.com/AdguardTeam/AdGuardHome/internal/dnsfilter"
"github.com/AdguardTeam/AdGuardHome/internal/dnsforward"
@ -357,10 +355,7 @@ func checkPermissions() {
// On Windows we need to have admin rights to run properly
admin, _ := util.HaveAdminRights()
if // noinspection ALL
admin || isdelve.Enabled {
// Don't forget that for this to work you need to add "delve" tag explicitly
// https://stackoverflow.com/questions/47879070/how-can-i-see-if-the-goland-debugger-is-running-in-the-program
if admin {
return
}

View File

@ -1,5 +0,0 @@
// +build delve
package isdelve
const Enabled = true

View File

@ -1,3 +0,0 @@
// Package isdelve is for checking if we're debugging:
// https://stackoverflow.com/questions/47879070/how-can-i-see-if-the-goland-debugger-is-running-in-the-program
package isdelve

View File

@ -1,5 +0,0 @@
// +build !delve
package isdelve
const Enabled = false