Skip to content

Commit 87fa562

Browse files
committed
remove file
1 parent 4e15540 commit 87fa562

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

coderd/wsbuilder/wsbuilder.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -197,32 +197,6 @@ func (e BuildError) Unwrap() error {
197197
return e.Wrapped
198198
}
199199

200-
type Adder interface {
201-
Add() int
202-
}
203-
204-
type myAdder struct {
205-
val int
206-
}
207-
208-
func (m *myAdder) Add() int {
209-
return m.val
210-
}
211-
212-
func sum(adder []Adder) int {
213-
sum := 0
214-
for _, a := range adder {
215-
sum += a.Add()
216-
}
217-
return sum
218-
}
219-
220-
var x = sum([]Adder{&myAdder{
221-
val: 2,
222-
}, &myAdder{
223-
val: 4,
224-
}})
225-
226200
// Build computes and inserts a new workspace build into the database. If authFunc is provided, it also performs
227201
// authorization preflight checks.
228202
func (b *Builder) Build(

0 commit comments

Comments
 (0)