Skip to content

Commit

Permalink
js: Remove Go 1.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Dec 16, 2020
1 parent 406ff5d commit 670aa82
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 47 deletions.
4 changes: 0 additions & 4 deletions driver_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ func tryAudioWorklet(context js.Value, channelNum int) (js.Value, error) {
return js.Undefined(), nil
}

if !isAudioWorkletAvailable() {
return js.Undefined(), nil
}

worklet := context.Get("audioWorklet")
if !worklet.Truthy() {
return js.Undefined(), &warn{
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hajimehoshi/oto

go 1.12
go 1.13

require (
golang.org/x/mobile v0.0.0-20190415191353-3e0bab5405d6
Expand Down
38 changes: 0 additions & 38 deletions go112_js.go

This file was deleted.

4 changes: 0 additions & 4 deletions go113_js.go → slice_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,3 @@ func copyFloat32sToJS(v js.Value, s []float32) {
js.CopyBytesToJS(a, bs)
runtime.KeepAlive(s)
}

func isAudioWorkletAvailable() bool {
return true
}

0 comments on commit 670aa82

Please sign in to comment.