Blake Mizerany 1 سال پیش
والد
کامیت
7ba71c3989
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      client/registry/registry.go

+ 0 - 4
client/registry/registry.go

@@ -29,9 +29,6 @@ var (
 type Client struct {
 type Client struct {
 	BaseURL string
 	BaseURL string
 
 
-	// TODO(bmizerany): remove NameFill (once we remove model dep here)
-	NameFill string
-
 	Logger *slog.Logger
 	Logger *slog.Logger
 }
 }
 
 
@@ -208,7 +205,6 @@ func (nopSeeker) Seek(int64, int) (int64, error) {
 // If the server requests layers not found in the cache, ErrLayerNotFound is
 // If the server requests layers not found in the cache, ErrLayerNotFound is
 // returned.
 // returned.
 func (c *Client) Push(ctx context.Context, cache Cache, name string) error {
 func (c *Client) Push(ctx context.Context, cache Cache, name string) error {
-	// TODO(bmizerany): remove dep on model.Name
 	manifest := cache.ManifestData(name)
 	manifest := cache.ManifestData(name)
 	if len(manifest) == 0 {
 	if len(manifest) == 0 {
 		return fmt.Errorf("manifest not found: %s", name)
 		return fmt.Errorf("manifest not found: %s", name)