From 353e3260b8a8ee67f7841134fbd669f40ad2fb99 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 24 Sep 2015 17:55:27 +0800 Subject: [PATCH] remove duplicated code --- trunk/src/app/srs_app_utility.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/trunk/src/app/srs_app_utility.cpp b/trunk/src/app/srs_app_utility.cpp index 39bf83ce4..2273800f8 100644 --- a/trunk/src/app/srs_app_utility.cpp +++ b/trunk/src/app/srs_app_utility.cpp @@ -159,11 +159,6 @@ string srs_path_build_timestamp(string template_path) // the buffer to format the date and time. char buf[64]; - // [2006], replace with current year. - if (true) { - snprintf(buf, sizeof(buf), "%d", 1900 + tm->tm_year); - path = srs_string_replace(path, "[2006]", buf); - } // [2006], replace with current year. if (true) { snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year);