Skip to content

Commit 31de851

Browse files
committed
Remove unused function
1 parent f2dccc5 commit 31de851

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎cpp2rust/converter/converter_lib.cpp‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,6 @@ GetUserDefinedCopyConstructor(const clang::RecordDecl *decl) {
295295
return nullptr;
296296
}
297297

298-
bool HasUserDefinedCopyConstructor(const clang::RecordDecl *decl) {
299-
return GetUserDefinedCopyConstructor(decl) != nullptr;
300-
}
301-
302298
bool HasDefaultedCopyConstructor(const clang::RecordDecl *decl) {
303299
auto *cxx = clang::dyn_cast<clang::CXXRecordDecl>(decl);
304300
if (!cxx) {

‎cpp2rust/converter/converter_lib.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ bool IsCopyOrMoveAssignmentOrCtor(const clang::CXXMethodDecl *method);
7474
clang::CXXConstructorDecl *
7575
GetUserDefinedCopyConstructor(const clang::RecordDecl *decl);
7676

77-
bool HasUserDefinedCopyConstructor(const clang::RecordDecl *decl);
78-
7977
bool IsCopyConstructible(const clang::RecordDecl *decl);
8078

8179
bool HasDefaultedCopyConstructor(const clang::RecordDecl *decl);

0 commit comments

Comments
 (0)