summaryrefslogtreecommitdiff
path: root/lineedit.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-28 01:05:06 -0400
committerPietro Gagliardi <[email protected]>2014-06-28 01:05:06 -0400
commitea6200a432c2954ec2b38afc66d1795dd161e8d9 (patch)
tree10665ae3e2ed42bb6a16027b7eb40adf7c8dee58 /lineedit.go
parent05ffc6511ab11fa365b2e8961bc67770bbf79777 (diff)
Began the migration to the new API. Removed locks from the public control APIs; they won't be needed anymore.
Diffstat (limited to 'lineedit.go')
-rw-r--r--lineedit.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/lineedit.go b/lineedit.go
index a45a443..56ac97c 100644
--- a/lineedit.go
+++ b/lineedit.go
@@ -2,13 +2,8 @@
package ui
-import (
- "sync"
-)
-
// A LineEdit is a control which allows you to enter a single line of text.
type LineEdit struct {
- lock sync.Mutex
created bool
sysData *sysData
initText string
@@ -33,9 +28,6 @@ func NewPasswordEdit() *LineEdit {
// SetText sets the LineEdit's text.
func (l *LineEdit) SetText(text string) {
- l.lock.Lock()
- defer l.lock.Unlock()
-
if l.created {
l.sysData.setText(text)
return
@@ -45,9 +37,6 @@ func (l *LineEdit) SetText(text string) {
// Text returns the LineEdit's text.
func (l *LineEdit) Text() string {
- l.lock.Lock()
- defer l.lock.Unlock()
-
if l.created {
return l.sysData.text()
}
@@ -55,9 +44,6 @@ func (l *LineEdit) Text() string {
}
func (l *LineEdit) make(window *sysData) error {
- l.lock.Lock()
- defer l.lock.Unlock()
-
l.sysData.alternate = l.password
err := l.sysData.make(window)
if err != nil {