Skip to content

Commit 30df6ec

Browse files
committed
Delete duplicate function definition
1 parent de9dc5a commit 30df6ec

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

cpp2rust/converter/mapper.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -735,17 +735,6 @@ std::string ToString(clang::QualType qual_type) {
735735
return normalizeTranslationRule(type);
736736
}
737737

738-
static std::string synthesizeAnonRecordName(const clang::RecordDecl *record) {
739-
std::string parent_name;
740-
if (auto *parent =
741-
clang::dyn_cast<clang::RecordDecl>(record->getDeclContext())) {
742-
parent_name = parent->getIdentifier()
743-
? parent->getIdentifier()->getName().str()
744-
: synthesizeAnonRecordName(parent);
745-
}
746-
return std::format("{}_anon_{}", parent_name, GetAnonIndex(record));
747-
}
748-
749738
std::string ToString(const clang::NamedDecl *decl) {
750739
if (auto *record = clang::dyn_cast<clang::RecordDecl>(decl);
751740
record && !record->getIdentifier()) {

0 commit comments

Comments
 (0)