Browse code

Remove unused Dockerfile instruction INSERT

Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>

Arnaud Porterie authored on 2015/05/07 06:35:10
Showing 4 changed files
... ...
@@ -16,7 +16,6 @@ const (
16 16
 	Expose     = "expose"
17 17
 	Volume     = "volume"
18 18
 	User       = "user"
19
-	Insert     = "insert"
20 19
 )
21 20
 
22 21
 // Commands is list of all Dockerfile commands
... ...
@@ -35,5 +34,4 @@ var Commands = map[string]struct{}{
35 35
 	Expose:     {},
36 36
 	Volume:     {},
37 37
 	User:       {},
38
-	Insert:     {},
39 38
 }
... ...
@@ -512,8 +512,3 @@ func volume(b *Builder, args []string, attributes map[string]bool, original stri
512 512
 	}
513 513
 	return nil
514 514
 }
515
-
516
-// INSERT is no longer accepted, but we still parse it.
517
-func insert(b *Builder, args []string, attributes map[string]bool, original string) error {
518
-	return fmt.Errorf("INSERT has been deprecated. Please use ADD instead")
519
-}
... ...
@@ -71,7 +71,6 @@ func init() {
71 71
 		command.Expose:     expose,
72 72
 		command.Volume:     volume,
73 73
 		command.User:       user,
74
-		command.Insert:     insert,
75 74
 	}
76 75
 }
77 76
 
... ...
@@ -61,7 +61,6 @@ func init() {
61 61
 		command.Entrypoint: parseMaybeJSON,
62 62
 		command.Expose:     parseStringsWhitespaceDelimited,
63 63
 		command.Volume:     parseMaybeJSONToList,
64
-		command.Insert:     parseIgnore,
65 64
 	}
66 65
 }
67 66