aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-09-03 00:51:09 +0000
committerAnders Carlsson <andersca@mac.com>2010-09-03 00:51:09 +0000
commit2d0e2431b2ddd16cd87176a3bf6c2529b8acaab2 (patch)
tree1e9f7164bc79e9793f5aa5e6b79c2e900b0047d9 /lib/Sema/SemaType.cpp
parent55f1da891015705b9df9ecc426543804d7398fda (diff)
Remove now unused function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index 20c909a8ea..92439ff0da 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1824,14 +1824,6 @@ static void HandleObjCGCTypeAttribute(QualType &Type,
Type = S.Context.getObjCGCQualType(Type, GCAttr);
}
-static QualType GetResultType(QualType T) {
- if (const PointerType *PT = T->getAs<PointerType>())
- T = PT->getPointeeType();
- else if (const BlockPointerType *BT = T->getAs<BlockPointerType>())
- T = BT->getPointeeType();
- return T->getAs<FunctionType>()->getResultType();
-}
-
/// Process an individual function attribute. Returns true if the
/// attribute does not make sense to apply to this type.
bool ProcessFnAttr(Sema &S, QualType &Type, const AttributeList &Attr) {