layers: Remove unused IsUpdated(uint32_t) from DescriptorSet class
authorTobin Ehlis <tobine@google.com>
Thu, 5 May 2016 16:36:24 +0000 (10:36 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 5 May 2016 22:05:18 +0000 (16:05 -0600)
All of the functionality that I thought I would need this for is contained
in the ValidateDrawState() function.

layers/descriptor_sets.cpp
layers/descriptor_sets.h

index bc55e6d..420b3c8 100644 (file)
@@ -293,12 +293,6 @@ cvdescriptorset::DescriptorSet::DescriptorSet(const VkDescriptorSet set, const D
         }
     }
 }
-// For given global_index return bool of whether or not the underlying descriptor has been updated
-bool cvdescriptorset::DescriptorSet::IsUpdated(const uint32_t global_index) const {
-    if (global_index >= descriptors_.size())
-        return false;
-    return descriptors_[global_index]->updated;
-}
 // Is this sets underlying layout compatible with passed in layout according to "Pipeline Layout Compatibility" in spec?
 bool cvdescriptorset::DescriptorSet::IsCompatible(const DescriptorSetLayout *layout, std::string *error) const {
     return layout->IsCompatible(p_layout_, error);
index 3d3ed8a..590cd7f 100644 (file)
@@ -339,8 +339,6 @@ class DescriptorSet : public BASE_NODE {
     };
     // Return true if any part of set has ever been updated
     bool IsUpdated() const { return some_update_; };
-    // Return true if the binding at the given global index has been updated
-    bool IsUpdated(const uint32_t global_index) const;
 
   private:
     bool ValidateUpdate(const VkWriteDescriptorSet *, const uint32_t, std::string *) const;