Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
10a2274b
Commit
10a2274b
authored
May 27, 2009
by
Roberto Raggi
Browse files
Removed obsolete code.
parent
3ae4f07b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/LookupContext.cpp
View file @
10a2274b
...
...
@@ -92,30 +92,6 @@ LookupContext::LookupContext(Symbol *symbol,
_visibleScopes
=
buildVisibleScopes
();
}
LookupContext
::
LookupContext
(
Symbol
*
symbol
,
const
LookupContext
&
context
)
:
_control
(
context
.
_control
),
_symbol
(
symbol
),
_expressionDocument
(
context
.
_expressionDocument
),
_documents
(
context
.
_documents
)
{
const
QString
fn
=
QString
::
fromUtf8
(
symbol
->
fileName
(),
symbol
->
fileNameLength
());
_thisDocument
=
_documents
.
value
(
fn
);
_visibleScopes
=
buildVisibleScopes
();
}
LookupContext
::
LookupContext
(
Symbol
*
symbol
,
Document
::
Ptr
thisDocument
,
const
LookupContext
&
context
)
:
_control
(
context
.
_control
),
_symbol
(
symbol
),
_expressionDocument
(
context
.
_expressionDocument
),
_thisDocument
(
thisDocument
),
_documents
(
context
.
_documents
)
{
_visibleScopes
=
buildVisibleScopes
();
}
bool
LookupContext
::
isValid
()
const
{
return
_control
!=
0
;
}
...
...
@@ -419,13 +395,6 @@ void LookupContext::expandClass(Class *klass,
const
QList
<
Symbol
*>
baseClassCandidates
=
resolveClass
(
baseClassName
,
classVisibleScopes
);
#if 0
if (baseClassCandidates.isEmpty()) {
Overview overview;
qDebug() << "unresolved base class:" << overview.prettyName(baseClassName);
}
#endif
for
(
int
j
=
0
;
j
<
baseClassCandidates
.
size
();
++
j
)
{
if
(
Class
*
baseClassSymbol
=
baseClassCandidates
.
at
(
j
)
->
asClass
())
expand
(
baseClassSymbol
->
members
(),
visibleScopes
,
expandedScopes
);
...
...
src/libs/cplusplus/LookupContext.h
View file @
10a2274b
...
...
@@ -45,13 +45,6 @@ public:
Document
::
Ptr
thisDocument
,
const
Snapshot
&
documents
);
LookupContext
(
Symbol
*
symbol
,
const
LookupContext
&
context
);
LookupContext
(
Symbol
*
symbol
,
Document
::
Ptr
thisDocument
,
const
LookupContext
&
context
);
bool
isValid
()
const
;
operator
bool
()
const
;
...
...
src/libs/cplusplus/ResolveExpression.cpp
View file @
10a2274b
...
...
@@ -457,7 +457,6 @@ bool ResolveExpression::visit(QualifiedNameAST *ast)
foreach
(
Symbol
*
symbol
,
symbols
)
{
if
(
symbol
->
isTypedef
())
{
if
(
NamedType
*
namedTy
=
symbol
->
type
()
->
asNamedType
())
{
LookupContext
symbolContext
(
symbol
,
_context
);
const
Result
r
(
namedTy
,
symbol
);
const
QList
<
Symbol
*>
resolvedClasses
=
resolveClass
(
r
,
_context
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment