🔥 移出遗留代码

This commit is contained in:
Liang Ding 2022-10-24 21:42:08 +08:00
parent d8b7b8aaac
commit b3cf3745e5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 0 additions and 95 deletions

View file

@ -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 {