mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
remove duplicated code
This commit is contained in:
parent
7cdcf41d26
commit
353e3260b8
1 changed files with 0 additions and 5 deletions
|
@ -159,11 +159,6 @@ string srs_path_build_timestamp(string template_path)
|
||||||
// the buffer to format the date and time.
|
// the buffer to format the date and time.
|
||||||
char buf[64];
|
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.
|
// [2006], replace with current year.
|
||||||
if (true) {
|
if (true) {
|
||||||
snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year);
|
snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year);
|
||||||
|
|
Loading…
Reference in a new issue