Remove unused parameters of StoreStaticAttrib
The parameters count and instances in VertexDataManager::StoreStaticAttrib
are never used in the function body. So this patch will remove them.
BUG=none
Change-Id: Ic3fe21ae50e5016145bfd0c78542540c8ec76fd2
Reviewed-on: https://chromium-review.googlesource.com/445337
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yunchao He <yunchao.he@intel.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libANGLE/renderer/d3d/VertexDataManager.cpp b/src/libANGLE/renderer/d3d/VertexDataManager.cpp
index 5b8eec5..c631349 100644
--- a/src/libANGLE/renderer/d3d/VertexDataManager.cpp
+++ b/src/libANGLE/renderer/d3d/VertexDataManager.cpp
@@ -256,7 +256,7 @@
case VertexStorageType::STATIC:
{
// Store static attribute.
- ANGLE_TRY(StoreStaticAttrib(translated, count, instances));
+ ANGLE_TRY(StoreStaticAttrib(translated));
break;
}
case VertexStorageType::DYNAMIC:
@@ -313,9 +313,7 @@
}
// static
-gl::Error VertexDataManager::StoreStaticAttrib(TranslatedAttribute *translated,
- GLsizei count,
- GLsizei instances)
+gl::Error VertexDataManager::StoreStaticAttrib(TranslatedAttribute *translated)
{
const auto &attrib = *translated->attribute;
const auto &binding = *translated->binding;
diff --git a/src/libANGLE/renderer/d3d/VertexDataManager.h b/src/libANGLE/renderer/d3d/VertexDataManager.h
index 456730a..c9cb5df 100644
--- a/src/libANGLE/renderer/d3d/VertexDataManager.h
+++ b/src/libANGLE/renderer/d3d/VertexDataManager.h
@@ -95,9 +95,7 @@
static void StoreDirectAttrib(TranslatedAttribute *directAttrib);
- static gl::Error StoreStaticAttrib(TranslatedAttribute *translated,
- GLsizei count,
- GLsizei instances);
+ static gl::Error StoreStaticAttrib(TranslatedAttribute *translated);
gl::Error storeDynamicAttribs(std::vector<TranslatedAttribute> *translatedAttribs,
const gl::AttributesMask &dynamicAttribsMask,
diff --git a/src/libANGLE/renderer/d3d/d3d11/VertexArray11.cpp b/src/libANGLE/renderer/d3d/d3d11/VertexArray11.cpp
index 84c8617..4bfb185 100644
--- a/src/libANGLE/renderer/d3d/d3d11/VertexArray11.cpp
+++ b/src/libANGLE/renderer/d3d/d3d11/VertexArray11.cpp
@@ -165,8 +165,7 @@
break;
case VertexStorageType::STATIC:
{
- ANGLE_TRY(
- VertexDataManager::StoreStaticAttrib(translatedAttrib, count, instances));
+ ANGLE_TRY(VertexDataManager::StoreStaticAttrib(translatedAttrib));
break;
}
case VertexStorageType::CURRENT_VALUE: