diff options
| author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-04-27 17:53:52 +0200 |
|---|---|---|
| committer | Maximilian Goldstein <max.goldstein@qt.io> | 2022-04-28 15:55:03 +0200 |
| commit | 7dd6fbb51a90803d51ce286529f6d351ebf77dfc (patch) | |
| tree | d3042a81d7ca13dfcb9ebc4b4e0b1d600debf928 /src | |
| parent | 4b330fa07b01b4ad8051a97af7c04d9a9a574b95 (diff) | |
QmlLintQuickPlugin: Remove redundant anchors null warning
Previously we warned when an anchor was null again after already
displaying a generic warning about a type mismatch. This is redundant,
so let's stick with the generic one.
Change-Id: I8f43d279b712d728dc154f48286b8d5c0dac9976
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/qmllint/quick/quicklintplugin.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/qmllint/quick/quicklintplugin.cpp b/src/plugins/qmllint/quick/quicklintplugin.cpp index b2248d3896..6e2d1e7382 100644 --- a/src/plugins/qmllint/quick/quicklintplugin.cpp +++ b/src/plugins/qmllint/quick/quicklintplugin.cpp @@ -255,12 +255,6 @@ void AnchorsValidatorPass::run(const QQmlSA::Element &element) bottom = srcLoc; else if (propertyName == u"baseline") baseline = srcLoc; - - if (propertyName == u"horizontalCenter" || propertyName == u"verticalCenter") { - if (groupBinding.bindingType() == QQmlJSMetaPropertyBinding::Null) { - emitWarning("Cannot anchor to a null item.", srcLoc); - } - } } } |
