diff --git a/include/sta/StringUtil.hh b/include/sta/StringUtil.hh index d06eef34..c2468006 100644 --- a/include/sta/StringUtil.hh +++ b/include/sta/StringUtil.hh @@ -170,9 +170,6 @@ stringPrint(string &str, char * stringPrintTmp(const char *fmt, ...) __attribute__((format (printf, 1, 2))); -// Caller owns returned string. -char * -integerString(int number); char * makeTmpString(size_t length); diff --git a/search/CheckTiming.cc b/search/CheckTiming.cc index e1940853..7bfbf2ef 100644 --- a/search/CheckTiming.cc +++ b/search/CheckTiming.cc @@ -424,9 +424,7 @@ CheckTiming::errorMsgSubst(const char *msg, s++; } else if (flag == 'd') { - const char *obj_str = integerString(obj_count); - error_msg += obj_str; - stringDelete(obj_str); + error_msg += std::to_string(obj_count); s++; } else diff --git a/search/ReportPath.cc b/search/ReportPath.cc index 68ca4c95..818e2add 100644 --- a/search/ReportPath.cc +++ b/search/ReportPath.cc @@ -814,7 +814,8 @@ ReportPath::reportEndpointOutputDelay(const PathEndClkConstrained *end) else { if (tgt_clk) { string clk_name = tgtClkName(end); - auto reason = stdstrPrint("internal path endpoint clocked by %s", clk_name.c_str()); + auto reason = stdstrPrint("internal path endpoint clocked by %s", + clk_name.c_str()); reportEndpoint(pin_name, reason); } diff --git a/util/StringUtil.cc b/util/StringUtil.cc index 95f8d13e..77b69968 100644 --- a/util/StringUtil.cc +++ b/util/StringUtil.cc @@ -60,12 +60,6 @@ isDigits(const char *str) //////////////////////////////////////////////////////////////// -char * -integerString(int number) -{ - return stringPrint("%d", number); -} - // print for c++ strings. void stringPrint(string &str,