Browse Source

x/registry: remove unused code

Blake Mizerany 1 year ago
parent
commit
d721228a2b
1 changed files with 0 additions and 8 deletions
  1. 0 8
      x/registry/server.go

+ 0 - 8
x/registry/server.go

@@ -9,7 +9,6 @@ import (
 	"log"
 	"net/http"
 	"net/url"
-	"os"
 	"path"
 	"strconv"
 	"time"
@@ -28,13 +27,6 @@ const (
 	DefaultUploadChunkSize = 50 * 1024 * 1024
 )
 
-// TODO(bmizerany): move all env things to package envkobs?
-var defaultLibrary = cmp.Or(os.Getenv("OLLAMA_REGISTRY"), "registry.ollama.ai/library")
-
-func DefaultLibrary() string {
-	return defaultLibrary
-}
-
 type Server struct {
 	UploadChunkSize int64 // default is DefaultUploadChunkSize
 	minioClient     *minio.Client