[clang] f37b285 - Removing an unused function; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 15 10:39:52 PDT 2022


Author: Aaron Ballman
Date: 2022-08-15T13:35:16-04:00
New Revision: f37b2852999c695af03c6d809816793d8d345538

URL: https://github.com/llvm/llvm-project/commit/f37b2852999c695af03c6d809816793d8d345538
DIFF: https://github.com/llvm/llvm-project/commit/f37b2852999c695af03c6d809816793d8d345538.diff

LOG: Removing an unused function; NFC

It turns out there are zero in-tree callers of CallExpr::getNumCommas()
so it's reasonable to remove.

Added: 
    

Modified: 
    clang/include/clang/AST/Expr.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 1fc6dc90b6c7c..d8efe663ce8ee 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -3061,10 +3061,6 @@ class CallExpr : public Expr {
                               PREARGS_START + getNumPreArgs() + getNumArgs());
   }
 
-  /// getNumCommas - Return the number of commas that must have been present in
-  /// this function call.
-  unsigned getNumCommas() const { return getNumArgs() ? getNumArgs() - 1 : 0; }
-
   /// Get FPOptionsOverride from trailing storage.
   FPOptionsOverride getStoredFPFeatures() const {
     assert(hasStoredFPFeatures());


        


More information about the cfe-commits mailing list