Skip to content

Commit 39bcfbe

Browse files
committed
refactor(examples): Remove unused func
1 parent 5e8a122 commit 39bcfbe

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

examples/auth/main.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ package main
33
import (
44
"context"
55
"fmt"
6-
"io/ioutil"
76
"log"
8-
"os"
97

108
radiko "github.com/yyoshiki41/go-radiko"
119
)
@@ -26,12 +24,3 @@ func main() {
2624
}
2725
fmt.Println(authToken)
2826
}
29-
30-
func createTempDir() (string, func()) {
31-
dir, err := ioutil.TempDir("", "example")
32-
if err != nil {
33-
log.Fatalf("Failed to create temp dir: %s", err)
34-
}
35-
36-
return dir, func() { os.RemoveAll(dir) }
37-
}

0 commit comments

Comments
 (0)