Browse Source

Remove unused enum ContextUsageKind from SpirvInstruction. (#2232)

alelenv 6 years ago
parent
commit
196b1ac14b
1 changed files with 0 additions and 12 deletions
  1. 0 12
      tools/clang/include/clang/SPIRV/SpirvInstruction.h

+ 0 - 12
tools/clang/include/clang/SPIRV/SpirvInstruction.h

@@ -449,15 +449,6 @@ private:
 /// \brief OpVariable instruction
 class SpirvVariable : public SpirvInstruction {
 public:
-  /// \brief An enum class for representing what the DeclContext is used for
-  enum class ContextUsageKind {
-    CBuffer = 0,
-    TBuffer = 1,
-    PushConstant = 2,
-    Globals = 3,
-    None = 4
-  };
-
   SpirvVariable(QualType resultType, SourceLocation loc, spv::StorageClass sc,
                 bool isPrecise, SpirvInstruction *initializerId = 0);
 
@@ -470,12 +461,9 @@ public:
 
   bool hasInitializer() const { return initializer != nullptr; }
   SpirvInstruction *getInitializer() const { return initializer; }
-  void setContextUsageKind(ContextUsageKind k) { contextUsageKind = k; }
-  ContextUsageKind getContextUsageKind() const { return contextUsageKind; }
 
 private:
   SpirvInstruction *initializer;
-  ContextUsageKind contextUsageKind;
 };
 
 class SpirvFunctionParameter : public SpirvInstruction {