mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🔥 移出遗留代码
This commit is contained in:
parent
d8b7b8aaac
commit
b3cf3745e5
3 changed files with 0 additions and 95 deletions
|
|
@ -110,8 +110,6 @@ func Boot() {
|
|||
bootBanner := figure.NewColorFigure("SiYuan", "isometric3", "green", true)
|
||||
logging.LogInfof("\n" + bootBanner.String())
|
||||
logBootInfo()
|
||||
|
||||
go cleanOld()
|
||||
}
|
||||
|
||||
func setBootDetails(details string) {
|
||||
|
|
@ -322,17 +320,6 @@ func initPathDir() {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: v2.2.0 移除
|
||||
func cleanOld() {
|
||||
dirs, _ := os.ReadDir(WorkingDir)
|
||||
for _, dir := range dirs {
|
||||
if strings.HasSuffix(dir.Name(), ".old") {
|
||||
old := filepath.Join(WorkingDir, dir.Name())
|
||||
os.RemoveAll(old)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func checkPort() {
|
||||
portOpened := isPortOpen(ServerPort)
|
||||
if !portOpened {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue