delete old codes
This commit is contained in:
@@ -2,7 +2,6 @@ package service
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"s-ui/config"
|
||||
"s-ui/core"
|
||||
"s-ui/database"
|
||||
"s-ui/database/model"
|
||||
@@ -14,7 +13,6 @@ import (
|
||||
|
||||
var (
|
||||
LastUpdate int64
|
||||
IsSystemd bool
|
||||
corePtr *core.Core
|
||||
)
|
||||
|
||||
@@ -43,11 +41,6 @@ func NewConfigService(core *core.Core) *ConfigService {
|
||||
return &ConfigService{}
|
||||
}
|
||||
|
||||
func (s *ConfigService) InitConfig() error {
|
||||
IsSystemd = config.IsSystemd()
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *ConfigService) GetConfig(data string) (*SingBoxConfig, error) {
|
||||
var err error
|
||||
if len(data) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user