Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 21, 2023
1 parent 125691d commit dda4909
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions experimental/clashapi/trafficontrol/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion experimental/libbox/command_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

type StatusMessage struct {
Memory int64
MemoryInuse int64
Goroutines int32
ConnectionsIn int32
ConnectionsOut int32
Expand Down

0 comments on commit dda4909

Please sign in to comment.