aboutsummaryrefslogtreecommitdiffstats
path: root/timetask
diff options
context:
space:
mode:
authorTeddy Wing2017-03-12 17:46:15 +0100
committerTeddy Wing2017-03-12 17:50:17 +0100
commite51719722bd5eead4b414f7188d39fd07af81312 (patch)
treeb0255d12227c59f3cbb76eddb058c22dc1ce1bac /timetask
parent89f766854443a6f7ae20c330547083fd0e075ba9 (diff)
downloadtimetasker-e51719722bd5eead4b414f7188d39fd07af81312.tar.bz2
fields.go: Get rid of unused `thingsByName` function
Not relevant. See 89f766854443a6f7ae20c330547083fd0e075ba9.
Diffstat (limited to 'timetask')
-rw-r--r--timetask/fields.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/timetask/fields.go b/timetask/fields.go
index 6d1fa69..991297b 100644
--- a/timetask/fields.go
+++ b/timetask/fields.go
@@ -34,17 +34,6 @@ type Fields struct {
Clients []Client
}
-// func thingByName(things []interface{}, name string) (*interface{}, error) {
-// for _, thing := range things {
-// t = IDName(thing.(IDName))
-// if t.Name == name {
-// return &thing, nil
-// }
-// }
-//
-// return nil, fmt.Errorf("Thing not found")
-// }
-
func (f *Fields) ClientByName(client_name string) (*Client, error) {
for _, client := range f.Clients {
if client.Name == client_name {