]> granicus.if.org Git - clang/commitdiff
Remove unused static function
authorDouglas Gregor <dgregor@apple.com>
Fri, 26 Mar 2010 23:25:35 +0000 (23:25 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 26 Mar 2010 23:25:35 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99666 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp

index 5a412920415e2e03ca99a37ce3d709b4d49566b5..23c30696e17a232634bdac81368f2f4e021833bd 100644 (file)
@@ -1896,23 +1896,6 @@ QualType Sema::CheckPointerToMemberOperands(
   return Result;
 }
 
-/// \brief Get the target type of a standard or user-defined conversion.
-static QualType TargetType(const ImplicitConversionSequence &ICS) {
-  switch (ICS.getKind()) {
-  case ImplicitConversionSequence::StandardConversion:
-    return ICS.Standard.getToType(2);
-  case ImplicitConversionSequence::UserDefinedConversion:
-    return ICS.UserDefined.After.getToType(2);
-  case ImplicitConversionSequence::AmbiguousConversion:
-    return ICS.Ambiguous.getToType();
-
-  case ImplicitConversionSequence::EllipsisConversion:
-  case ImplicitConversionSequence::BadConversion:
-    llvm_unreachable("function not valid for ellipsis or bad conversions");
-  }
-  return QualType(); // silence warnings
-}
-
 /// \brief Try to convert a type to another according to C++0x 5.16p3.
 ///
 /// This is part of the parameter validation for the ? operator. If either