Skip to content
GitLab
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
d514949a
Commit
d514949a
authored
Feb 01, 2010
by
Roberto Raggi
Browse files
Removed obsolete code.
parent
cd9d13ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmlcodecompletion.cpp
View file @
d514949a
...
...
@@ -545,29 +545,6 @@ bool QmlCodeCompletion::triggersCompletion(TextEditor::ITextEditable *editor)
return
false
;
}
bool
QmlCodeCompletion
::
isImported
(
Document
::
Ptr
doc
,
const
QString
&
currentFilePath
)
const
{
if
(
!
(
doc
&&
doc
->
qmlProgram
()))
return
false
;
QFileInfo
fileInfo
(
doc
->
fileName
());
const
QString
absolutePath
=
fileInfo
.
absolutePath
();
for
(
AST
::
UiImportList
*
it
=
doc
->
qmlProgram
()
->
imports
;
it
;
it
=
it
->
next
)
{
if
(
!
(
it
->
import
&&
it
->
import
->
fileName
))
continue
;
QString
path
=
absolutePath
;
path
+=
QLatin1Char
(
'/'
);
path
+=
it
->
import
->
fileName
->
asString
();
path
=
QDir
::
cleanPath
(
path
);
if
(
path
==
currentFilePath
)
return
true
;
}
return
false
;
}
bool
QmlCodeCompletion
::
isDelimiter
(
const
QChar
&
ch
)
const
{
switch
(
ch
.
unicode
())
{
...
...
src/plugins/qmljseditor/qmlcodecompletion.h
View file @
d514949a
...
...
@@ -73,7 +73,6 @@ public:
private:
void
updateSnippets
();
bool
isImported
(
QmlJS
::
Document
::
Ptr
doc
,
const
QString
&
currentFilePath
)
const
;
bool
isDelimiter
(
const
QChar
&
ch
)
const
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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