forked from qt-creator/qt-creator
Project: Remove Project::document() method
The document is used to do file watching, which may or may not be ideal. So make sure we do not leak the information how we watch files into the API and its users. The method is not used sensibly anywhere in creator, so it seems safe to remove it entirely. Change-Id: Ieed755bd5c852875378e4e96665dc906499975b0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -285,9 +285,7 @@ ParserTreeItem::ConstPtr Parser::parse()
|
||||
for (const Project *prj : SessionManager::projects()) {
|
||||
ParserTreeItem::Ptr item;
|
||||
QString prjName(prj->displayName());
|
||||
QString prjType(prjName);
|
||||
if (prj->document())
|
||||
prjType = prj->projectFilePath().toString();
|
||||
QString prjType = prj->projectFilePath().toString();
|
||||
SymbolInformation inf(prjName, prjType);
|
||||
item = ParserTreeItem::Ptr(new ParserTreeItem());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user