summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-11-27 14:55:15 +0100
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-11-27 14:55:15 +0100
commit07fafbecff4a973934c57dbe63ea110c9e31b96e (patch)
treeb0ef0c26da0580ef24e9fdf146e57244d15d1d40
parentFormBase: Improve automatic resizing to accommodate children (diff)
downloadwireguard-windows-07fafbecff4a973934c57dbe63ea110c9e31b96e.tar.xz
wireguard-windows-07fafbecff4a973934c57dbe63ea110c9e31b96e.zip
static: Remove pointless code
-rw-r--r--static.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/static.go b/static.go
index 38ed9663..e0034fc9 100644
--- a/static.go
+++ b/static.go
@@ -174,14 +174,8 @@ func (s *static) setText(text string) (changed bool, err error) {
return false, err
}
- size := s.BoundsPixels().Size()
-
s.RequestLayout()
- if s.BoundsPixels().Size() == size && size != (Size{}) {
- s.updateStaticBounds()
- }
-
return true, nil
}