simplify the interfaces to create selectors: getSelector can take any 
number of arguments now and does the right thing, but the nullary/unary
accessors are preserved as convenience functions.  This allows us to
slightly simplify clients.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42716 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Lex/IdentifierTable.cpp b/Lex/IdentifierTable.cpp
index aba3f9d..fd64dec 100644
--- a/Lex/IdentifierTable.cpp
+++ b/Lex/IdentifierTable.cpp
@@ -324,10 +324,9 @@
 }
 
 
-Selector SelectorTable::getKeywordSelector(unsigned nKeys, 
-                                           IdentifierInfo **IIV) {
-  if (nKeys == 1)
-    return Selector(IIV[0], 1);
+Selector SelectorTable::getSelector(unsigned nKeys, IdentifierInfo **IIV) {
+  if (nKeys < 2)
+    return Selector(IIV[0], nKeys);
   
   llvm::FoldingSet<MultiKeywordSelector> *SelTab;
   
@@ -351,14 +350,6 @@
   return Selector(SI);
 }
 
-Selector SelectorTable::getUnarySelector(IdentifierInfo *ID) {
-  return Selector(ID, 1);
-}
-
-Selector SelectorTable::getNullarySelector(IdentifierInfo *ID) {
-  return Selector(ID, 0);
-}
-
 SelectorTable::SelectorTable() {
   Impl = new llvm::FoldingSet<MultiKeywordSelector>;
 }