From d2f42ff754e917bae855f304ce33c37dad6066ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Mon, 2 Jan 2023 13:25:43 -0500 Subject: [PATCH] Removed wm from posts package --- ui/views/posts/wm.go | 48 -------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 ui/views/posts/wm.go diff --git a/ui/views/posts/wm.go b/ui/views/posts/wm.go deleted file mode 100644 index 62e9eb0..0000000 --- a/ui/views/posts/wm.go +++ /dev/null @@ -1,48 +0,0 @@ -package posts - -// -// var WM_ROOT_ID = "list" -// -// func (m *Model) WMOpen(id string) bool { -// if m.WMisOpen(id) { -// if m.WMisFocused(id) { -// return true -// } -// return false -// } -// -// m.wm = append(m.wm, id) -// return true -// } -// -// func (m *Model) WMCloseFocused() bool { -// return m.WMClose(m.WMFocused()) -// } -// -// func (m *Model) WMClose(id string) bool { -// for i := len(m.wm) - 1; i > 0; i-- { -// if m.wm[i] == id { -// m.wm = append(m.wm[:i], m.wm[i+1:]...) -// return true -// } -// } -// -// return false -// } -// -// func (m *Model) WMFocused() string { -// return m.wm[len(m.wm)-1] -// } -// -// func (m *Model) WMisOpen(id string) bool { -// for _, openID := range m.wm { -// if openID == id { -// return true -// } -// } -// return false -// } -// -// func (m *Model) WMisFocused(id string) bool { -// return id == m.WMFocused() -// }