🔥 移除冗余代码

This commit is contained in:
Liang Ding 2022-07-19 01:05:05 +08:00
parent 8f8f2b6100
commit 5b9f2c3cb1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 2 additions and 61 deletions

View file

@ -1,34 +0,0 @@
// SiYuan - Build Your Eternal Digital Garden
// Copyright (c) 2020-present, b3log.org
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
package conf
import (
"path/filepath"
"github.com/siyuan-note/siyuan/kernel/util"
)
type Backup struct {
}
func NewBackup() *Backup {
return &Backup{}
}
func (b *Backup) GetSaveDir() string {
return filepath.Join(util.WorkspaceDir, "backup")
}

View file

@ -16,12 +16,6 @@
package conf
import (
"path/filepath"
"github.com/siyuan-note/siyuan/kernel/util"
)
type Sync struct {
CloudName string `json:"cloudName"` // 云端同步目录名称
Enabled bool `json:"enabled"` // 是否开启同步
@ -37,7 +31,3 @@ func NewSync() *Sync {
Mode: 1,
}
}
func (s *Sync) GetSaveDir() string {
return filepath.Join(util.WorkspaceDir, "sync")
}