mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Remove debugging and unused code
This commit is contained in:
parent
219e6ba1a2
commit
a9d4ee4ccb
3 changed files with 0 additions and 10 deletions
|
@ -3,7 +3,6 @@ package process
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/safing/portbase/log"
|
|
||||||
"github.com/safing/portbase/modules"
|
"github.com/safing/portbase/modules"
|
||||||
"github.com/safing/portmaster/updates"
|
"github.com/safing/portmaster/updates"
|
||||||
)
|
)
|
||||||
|
@ -26,7 +25,6 @@ func start() error {
|
||||||
if updatesPath != "" {
|
if updatesPath != "" {
|
||||||
updatesPath += string(os.PathSeparator)
|
updatesPath += string(os.PathSeparator)
|
||||||
}
|
}
|
||||||
log.Warningf("process: using updates path %s", updatesPath)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ package profile
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/safing/portbase/database"
|
"github.com/safing/portbase/database"
|
||||||
|
|
||||||
|
@ -154,12 +153,6 @@ func findProfile(linkedPath string) (profile *Profile, err error) {
|
||||||
// If there was no profile in the database, create a new one, and return it.
|
// If there was no profile in the database, create a new one, and return it.
|
||||||
profile = New(SourceLocal, "", linkedPath, nil)
|
profile = New(SourceLocal, "", linkedPath, nil)
|
||||||
|
|
||||||
// Check if the profile should be marked as internal.
|
|
||||||
// This is the case whenever the binary resides within the data root dir.
|
|
||||||
if updatesPath != "" && strings.HasPrefix(linkedPath, updatesPath) {
|
|
||||||
profile.Internal = true
|
|
||||||
}
|
|
||||||
|
|
||||||
return profile, nil
|
return profile, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ func start() error {
|
||||||
if updatesPath != "" {
|
if updatesPath != "" {
|
||||||
updatesPath += string(os.PathSeparator)
|
updatesPath += string(os.PathSeparator)
|
||||||
}
|
}
|
||||||
log.Warningf("profile: using updates path %s", updatesPath)
|
|
||||||
|
|
||||||
err := registerValidationDBHook()
|
err := registerValidationDBHook()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue