delete old codes

This commit is contained in:
Alireza Ahmadi
2025-01-06 00:08:27 +01:00
parent 8bab127f19
commit 8073e8ab0a
6 changed files with 2 additions and 83 deletions
-7
View File
@@ -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 {