summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuScript.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-12-16 19:07:30 -0800
committerStephen Hines <srhines@google.com>2014-12-16 19:07:30 -0800
commit584e58bb75a4d742e3a9dfcfea36eba59b38dbd9 (patch)
tree94f7c67acbee335b97417a10581b143ac3e67c49 /cpu_ref/rsCpuScript.cpp
parent914cbfc17d08d9b310e042691152152826a15625 (diff)
BCCContext is actually dead code.
This should have been removed as part of the switchover to standalone bcc. Change-Id: Icbb9a4c064dd9f002f9acfa1ac7748745501de2b
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r--cpu_ref/rsCpuScript.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index fe51eecc..c88f03cb 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -386,7 +386,6 @@ RsdCpuScriptImpl::RsdCpuScriptImpl(RsdCpuReferenceImpl *ctx, const Script *s) {
mFieldIsObject = nullptr;
mForEachSignatures = nullptr;
#else
- mCompilerContext = nullptr;
mCompilerDriver = nullptr;
mExecutable = nullptr;
#endif
@@ -414,17 +413,9 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir,
#ifndef RS_COMPATIBILITY_LIB
bool useRSDebugContext = false;
- mCompilerContext = nullptr;
mCompilerDriver = nullptr;
mExecutable = nullptr;
- mCompilerContext = new bcc::BCCContext();
- if (mCompilerContext == nullptr) {
- ALOGE("bcc: FAILS to create compiler context (out of memory)");
- mCtx->unlockMutex();
- return false;
- }
-
mCompilerDriver = new bcc::RSCompilerDriver();
if (mCompilerDriver == nullptr) {
ALOGE("bcc: FAILS to create compiler driver (out of memory)");
@@ -1204,9 +1195,6 @@ RsdCpuScriptImpl::~RsdCpuScriptImpl() {
}
}
- if (mCompilerContext) {
- delete mCompilerContext;
- }
if (mCompilerDriver) {
delete mCompilerDriver;
}