Skip to content

Commit

Permalink
Update tree sample to use the new StartDriver signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-clayton committed Mar 20, 2015
1 parent c0952f8 commit dac554c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions samples/tree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package main

import (
"flag"

"github.com/google/gxui"
"github.com/google/gxui/drivers/gl"
"github.com/google/gxui/math"
"github.com/google/gxui/themes/dark"
)

var data = flag.String("data", "", "path to data")

type treeAdapterNode struct {
children []treeAdapterNode
data string
Expand Down Expand Up @@ -162,6 +158,5 @@ func appMain(driver gxui.Driver) {
}

func main() {
flag.Parse()
gl.StartDriver(*data, appMain)
gl.StartDriver(appMain)
}

0 comments on commit dac554c

Please sign in to comment.