diff --git a/ui/draw/draw.go b/ui/draw/draw.go index 989c44a1..de10c062 100644 --- a/ui/draw/draw.go +++ b/ui/draw/draw.go @@ -69,8 +69,6 @@ func (i *OpImage) Decode(d []byte, refs []interface{}) { } } -func (OpImage) ImplementsOp() {} - // RectPath constructs a path corresponding to // a pixel aligned rectangular area. func RectPath(r image.Rectangle) *Path { diff --git a/ui/draw/path.go b/ui/draw/path.go index 787d4bc7..49a0f11a 100644 --- a/ui/draw/path.go +++ b/ui/draw/path.go @@ -280,5 +280,3 @@ func (p *PathBuilder) Path() *Path { } return data } - -func (p OpClip) ImplementsOp() {} diff --git a/ui/key/key.go b/ui/key/key.go index e69566c0..e8e0c393 100644 --- a/ui/key/key.go +++ b/ui/key/key.go @@ -99,9 +99,6 @@ func (h OpHideInput) Add(o *ui.Ops) { o.Write(data) } -func (OpHandler) ImplementsOp() {} -func (OpHideInput) ImplementsOp() {} - func (Edit) ImplementsEvent() {} func (Chord) ImplementsEvent() {} func (Focus) ImplementsEvent() {} diff --git a/ui/ops.go b/ui/ops.go index 0830df5f..fac6cf3c 100644 --- a/ui/ops.go +++ b/ui/ops.go @@ -75,5 +75,3 @@ func (b OpBlock) Add(o *Ops) { bo.PutUint32(data[1:], uint32(b.idx)) o.Write(data) } - -func (OpBlock) ImplementsOp() {} diff --git a/ui/pointer/pointer.go b/ui/pointer/pointer.go index 25edc7fe..013824ac 100644 --- a/ui/pointer/pointer.go +++ b/ui/pointer/pointer.go @@ -134,5 +134,4 @@ func (s Source) String() string { } } -func (OpHandler) ImplementsOp() {} -func (Event) ImplementsEvent() {} +func (Event) ImplementsEvent() {} diff --git a/ui/ui.go b/ui/ui.go index 77a8303a..11926edf 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -36,12 +36,6 @@ func (c *Config) Pixels(v Value) float32 { } } -// Op is implemented by all drawing and control -// operations. -type Op interface { - ImplementsOp() -} - // OpLayer represents a semantic layer of UI. type OpLayer struct { } @@ -141,7 +135,3 @@ func Offset(o f32.Point) Transform { // Inf is the int value that represents an unbounded maximum constraint. const Inf = int(^uint(0) >> 1) - -func (OpLayer) ImplementsOp() {} -func (OpTransform) ImplementsOp() {} -func (OpRedraw) ImplementsOp() {}