remove useless code, file removal is handled elsewhere
authorAlex Beregszaszi <alex@rtfs.hu>
Sun, 22 Apr 2007 15:06:16 +0000 (15:06 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Sun, 22 Apr 2007 15:06:16 +0000 (15:06 +0000)
Originally committed as revision 8782 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index b5cd93a..f84b87f 100644 (file)
@@ -3956,16 +3956,6 @@ static int parse_ffconfig(const char *filename)
                 fprintf(stderr, "%s:%d: No corresponding <Feed> for </Feed>\n",
                         filename, line_num);
                 errors++;
                 fprintf(stderr, "%s:%d: No corresponding <Feed> for </Feed>\n",
                         filename, line_num);
                 errors++;
-#if 0
-            } else {
-                /* Make sure that we start out clean */
-                if (unlink(feed->feed_filename) < 0
-                    && errno != ENOENT) {
-                    fprintf(stderr, "%s:%d: Unable to clean old feed file '%s': %s\n",
-                        filename, line_num, feed->feed_filename, strerror(errno));
-                    errors++;
-                }
-#endif
             }
             feed = NULL;
         } else if (!strcasecmp(cmd, "<Stream")) {
             }
             feed = NULL;
         } else if (!strcasecmp(cmd, "<Stream")) {