Browse Source

Remove unused code

世界 1 year ago
parent
commit
0f8ad0234b

+ 0 - 3
experimental/clashapi/trafficontrol/manager.go

@@ -70,9 +70,6 @@ func (m *Manager) Snapshot() *Snapshot {
 		return true
 	})
 
-	//if memoryInfo, err := m.process.MemoryInfo(); err == nil {
-	//	m.memory = memoryInfo.RSS
-	//} else {
 	var memStats runtime.MemStats
 	runtime.ReadMemStats(&memStats)
 	m.memory = memStats.StackInuse + memStats.HeapInuse + memStats.HeapIdle - memStats.HeapReleased

+ 0 - 1
experimental/libbox/command_status.go

@@ -14,7 +14,6 @@ import (
 
 type StatusMessage struct {
 	Memory           int64
-	MemoryInuse      int64
 	Goroutines       int32
 	ConnectionsIn    int32
 	ConnectionsOut   int32