winlin

remove duplicated code

@@ -161,11 +161,6 @@ string srs_path_build_timestamp(string template_path) @@ -161,11 +161,6 @@ string srs_path_build_timestamp(string template_path)
161 161
162 // [2006], replace with current year. 162 // [2006], replace with current year.
163 if (true) { 163 if (true) {
164 - snprintf(buf, sizeof(buf), "%d", 1900 + tm->tm_year);  
165 - path = srs_string_replace(path, "[2006]", buf);  
166 - }  
167 - // [2006], replace with current year.  
168 - if (true) {  
169 snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year); 164 snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year);
170 path = srs_string_replace(path, "[2006]", buf); 165 path = srs_string_replace(path, "[2006]", buf);
171 } 166 }