Remove dead code.
[oweals/opkg-lede.git] / libbb / copy_file.c
index c79fbeb14912fb8461ab0b1958896239c47846b1..fb76669a3fd94ec9d0ba4813f6f833e6368faa8d 100644 (file)
@@ -134,12 +134,6 @@ int copy_file(const char *source, const char *dest, int flags)
                FILE *sfp, *dfp;
 
                if (dest_exists) {
-                       if (flags & FILEUTILS_INTERACTIVE) {
-                               fprintf(stderr, "%s: overwrite `%s'? ", applet_name, dest);
-                               if (!ask_confirmation())
-                                       return 0;
-                       }
-
                        if ((dfp = fopen(dest, "w")) == NULL) {
                                if (!(flags & FILEUTILS_FORCE)) {
                                        perror_msg("unable to open `%s'", dest);