Skip to content

Commit bcc4b0d

Browse files
committed
[clang-doc] remove useless code
1 parent ac1c7b5 commit bcc4b0d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

clang-tools-extra/clang-doc/Representation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ void EnumInfo::merge(EnumInfo &&Other) {
266266
Scoped = Other.Scoped;
267267
if (Members.empty())
268268
Members = std::move(Other.Members);
269-
if (Other.HasComments || HasComments)
270-
HasComments = true;
271269
SymbolInfo::merge(std::move(Other));
272270
}
273271

clang-tools-extra/clang-doc/Representation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,6 @@ struct EnumInfo : public SymbolInfo {
445445

446446
// Indicates whether this enum is scoped (e.g. enum class).
447447
bool Scoped = false;
448-
// Indicates whether or not enum members have comments attached
449-
bool HasComments = false;
450448

451449
// Set to nonempty to the type when this is an explicitly typed enum. For
452450
// enum Foo : short { ... };

0 commit comments

Comments
 (0)