diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-23 11:04:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-23 18:20:51 +0100 |
commit | 659109609ba2a7a827a4920c9456432b70cb001a (patch) | |
tree | a737debce7b36088b6f1e062ae1c0c3b6ce9bdd0 /compilerplugins | |
parent | 843b26a6dba07fdda451d3d576553df132e30a8a (diff) |
Remove unused TypeCheck::SubstTemplateTypeParmType
...introduced unused with 91b4e4531621b7afb2dbab1a8aa62c92da66951a "new
loplugin: pointerbool"
Change-Id: I3af0ce878f1f2742223d66bcdade4e9c144162cd
Reviewed-on: https://gerrit.libreoffice.org/48387
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/check.cxx | 9 | ||||
-rw-r--r-- | compilerplugins/clang/check.hxx | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/compilerplugins/clang/check.cxx b/compilerplugins/clang/check.cxx index 8b3e409be2d1..2a7b0a978348 100644 --- a/compilerplugins/clang/check.cxx +++ b/compilerplugins/clang/check.cxx @@ -138,15 +138,6 @@ TypeCheck TypeCheck::NotSubstTemplateTypeParmType() const { ? *this : TypeCheck(); } -TypeCheck TypeCheck::SubstTemplateTypeParmType() const { - if (!type_.isNull()) { - if (auto const t = type_->getAs<clang::SubstTemplateTypeParmType>()) { - return TypeCheck(t->desugar()); - } - } - return TypeCheck(); -} - ContextCheck DeclCheck::Operator(clang::OverloadedOperatorKind op) const { assert(op != clang::OO_None); auto f = llvm::dyn_cast_or_null<clang::FunctionDecl>(decl_); diff --git a/compilerplugins/clang/check.hxx b/compilerplugins/clang/check.hxx index f31599f1b153..af6e8263df39 100644 --- a/compilerplugins/clang/check.hxx +++ b/compilerplugins/clang/check.hxx @@ -72,8 +72,6 @@ public: TypeCheck NotSubstTemplateTypeParmType() const; - TypeCheck SubstTemplateTypeParmType() const; - private: TypeCheck() = default; |