Skip to content

🎥 Make videos programmatically with React

fix warnings + remove unused

Jonny Burger160811de4c14
diff --git a/packages/goclient/utils.go b/packages/goclient/utils.go
index adac097fe1..8805ab7aed 100644
--- a/packages/goclient/utils.go
+++ b/packages/goclient/utils.go
@@ -4,16 +4,13 @@ import (
"encoding/json"
"errors"
"fmt"
- "log"
- "math/rand"
- "time"
)
func serializeInputProps(inputProps interface{}, region string, inputType string,
userSpecifiedBucketName *string) (map[string]interface{}, error) {
payload, err := json.Marshal(inputProps)
if err != nil {
- return nil, errors.New("error serializing inputProps. Check it has no circular references or reduce the size if the object is big.")
+ return nil, errors.New("error serializing inputProps. Check it has no circular references or reduce the size if the object is big")
}
// Set maximum inline payload size based on input type
@@ -32,32 +29,3 @@ func serializeInputProps(inputProps interface{}, region string, inputType string
"payload": string(payload),
}, nil
}
-
-func randomHash(options ...bool) string {
- var randomInTests bool
- if len(options) > 0 {
- randomInTests = options[0]
- }
-
- alphabet := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
- length := 10
-
- if randomInTests {
- rand.Seed(1234)
- } else {
- rand.Seed(time.Now().UnixNano())
- }
-
- hash := make([]byte, length)
- for i := 0; i < length; i++ {
- hash[i] = alphabet[rand.Intn(len(alphabet))]
- }
-
- return string(hash)
-}
-
-func logInfo(message string) {
- log.SetPrefix("INFO ")
- log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
- log.Println(message)
-}