浏览代码

[spirv] Remove unused function.

Ehsan 6 年之前
父节点
当前提交
654583890f
共有 1 个文件被更改,包括 0 次插入14 次删除
  1. 0 14
      tools/clang/lib/SPIRV/LowerTypeVisitor.cpp

+ 0 - 14
tools/clang/lib/SPIRV/LowerTypeVisitor.cpp

@@ -41,20 +41,6 @@ bool improperStraddle(clang::QualType type, int size, int offset) {
                     : offset % 16 != 0;
                     : offset % 16 != 0;
 }
 }
 
 
-bool isAKindOfStructuredOrByteBuffer(const clang::spirv::SpirvType *type) {
-  // Strip outer arrayness first
-  while (llvm::isa<clang::spirv::ArrayType>(type))
-    type = llvm::cast<clang::spirv::ArrayType>(type)->getElementType();
-
-  // They are structures with the first member that is of RuntimeArray type.
-  if (auto *structType = llvm::dyn_cast<clang::spirv::StructType>(type))
-    return structType->getFields().size() == 1 &&
-           llvm::isa<clang::spirv::RuntimeArrayType>(
-               structType->getFields()[0].type);
-
-  return false;
-}
-
 } // end anonymous namespace
 } // end anonymous namespace
 
 
 namespace clang {
 namespace clang {