summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r--rsScriptC.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp
index d2d5b1fd..eaef8490 100644
--- a/rsScriptC.cpp
+++ b/rsScriptC.cpp
@@ -183,15 +183,6 @@ void ScriptC::runForEach(Context *rsc,
const void * usr,
size_t usrBytes,
const RsScriptCall *sc) {
- // Make a copy of RsScriptCall and zero out extra fields that are absent
- // in API levels below 23.
- RsScriptCall sc_copy;
- if (sc != nullptr && getApiLevel() < 23) {
- memset(&sc_copy, 0, sizeof(sc_copy));
- memcpy(&sc_copy, sc, 7*4);
- sc = &sc_copy;
- }
-
if (slot >= mHal.info.exportedForEachCount) {
rsc->setError(RS_ERROR_BAD_SCRIPT,
"The forEach kernel index is out of bounds");