forked from qt-creator/qt-creator
Simplify interface of classes in ClassViewPlugin
Remove unused methods. Replace one slot with a call
to lambda.
Amends a673fca144
Task-number: QTCREATORBUG-25317
Change-Id: I1125b62b9ea66b8dc43038a6b748d52a5a27224f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -146,36 +146,6 @@ void ParserTreeItem::addSymbolLocation(const SymbolLocation &location)
|
||||
d->symbolLocations.insert(location);
|
||||
}
|
||||
|
||||
/*!
|
||||
Adds information about symbol locations from \a locations.
|
||||
\sa SymbolLocation, removeSymbolLocation, symbolLocations
|
||||
*/
|
||||
|
||||
void ParserTreeItem::addSymbolLocation(const QSet<SymbolLocation> &locations)
|
||||
{
|
||||
d->symbolLocations.unite(locations);
|
||||
}
|
||||
|
||||
/*!
|
||||
Removes information about \a location.
|
||||
\sa SymbolLocation, addSymbolLocation, symbolLocations
|
||||
*/
|
||||
|
||||
void ParserTreeItem::removeSymbolLocation(const SymbolLocation &location)
|
||||
{
|
||||
d->symbolLocations.remove(location);
|
||||
}
|
||||
|
||||
/*!
|
||||
Removes information about \a locations.
|
||||
\sa SymbolLocation, addSymbolLocation, symbolLocations
|
||||
*/
|
||||
|
||||
void ParserTreeItem::removeSymbolLocations(const QSet<SymbolLocation> &locations)
|
||||
{
|
||||
d->symbolLocations.subtract(locations);
|
||||
}
|
||||
|
||||
/*!
|
||||
Gets information about symbol positions.
|
||||
\sa SymbolLocation, addSymbolLocation, removeSymbolLocation
|
||||
@@ -199,15 +169,6 @@ void ParserTreeItem::appendChild(const ParserTreeItem::Ptr &item, const SymbolIn
|
||||
d->symbolInformations[inf] = item;
|
||||
}
|
||||
|
||||
/*!
|
||||
Removes the \a inf symbol information.
|
||||
*/
|
||||
|
||||
void ParserTreeItem::removeChild(const SymbolInformation &inf)
|
||||
{
|
||||
d->symbolInformations.remove(inf);
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the child item specified by \a inf symbol information.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user