aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaiface <faiface@ksp.sk>2017-08-20 12:35:19 +0200
committerfaiface <faiface@ksp.sk>2017-08-20 12:35:19 +0200
commit104fac75568f7694ee9760215b7db250280dc226 (patch)
tree079b5450be146d2532405cdb0ad7eb01dc6071c8
parentcf0fe08923f24b31c7f1064d950bf4410c1eafff (diff)
downloadgui-104fac75568f7694ee9760215b7db250280dc226.zip
event: remove Matches
-rw-r--r--event/dispatch.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/event/dispatch.go b/event/dispatch.go
index 89d1cae..738161a 100644
--- a/event/dispatch.go
+++ b/event/dispatch.go
@@ -26,20 +26,6 @@ func Sscan(event string, a ...interface{}) {
}
}
-func Matches(pattern, event string) bool {
- p := strings.Split(pattern, Sep)
- e := strings.Split(event, Sep)
- if len(p) > len(e) {
- return false
- }
- for i := range p {
- if p[i] != e[i] {
- return false
- }
- }
- return true
-}
-
type Dispatch struct {
mu sync.Mutex
handlers []func(event string) bool