From 359541ed4fd4a3affeb8fe109f3771a40e069bc1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Apr 2020 11:51:59 -0700 Subject: [PATCH] Remove the Identifier::is() method, it is now equivalent to operator==. NFC. Summary: Depends on D78042. Reviewers: rriddle! Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78043 --- mlir/include/mlir/IR/Identifier.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/mlir/include/mlir/IR/Identifier.h b/mlir/include/mlir/IR/Identifier.h index 98a792a..ca1946b 100644 --- a/mlir/include/mlir/IR/Identifier.h +++ b/mlir/include/mlir/IR/Identifier.h @@ -51,9 +51,6 @@ public: /// Return the number of bytes in this string. unsigned size() const { return entry->getKeyLength(); } - /// Return true if this identifier is the specified string. - bool is(StringRef string) const { return strref() == string; } - const char *begin() const { return data(); } const char *end() const { return entry->getKeyData() + size(); } -- 2.7.4