diff options
author | 2011-11-27 08:41:23 +0800 | |
---|---|---|
committer | 2011-11-27 08:42:11 +0800 | |
commit | 12be3fff12e5c55193867f49e13169b9400b2997 (patch) | |
tree | fbc630524bfb174e5741b6ea47c8063988afa310 | |
parent | b145ae9eca9c6a998d15915b17346d35991ad0af (diff) |
Remove dead code.
Change-Id: I2838a40026291e7345b07911af3ba17278b63ffe
-rw-r--r-- | libs/rs/driver/rsdBcc.cpp | 4 | ||||
-rw-r--r-- | libs/rs/rsScript.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/libs/rs/driver/rsdBcc.cpp b/libs/rs/driver/rsdBcc.cpp index c16091c58b3f..917b419fd16b 100644 --- a/libs/rs/driver/rsdBcc.cpp +++ b/libs/rs/driver/rsdBcc.cpp @@ -72,7 +72,7 @@ bool rsdScriptInit(const Context *rsc, //LOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc); pthread_mutex_lock(&rsdgInitMutex); - char *cachePath = NULL; + size_t exportFuncCount = 0; size_t exportVarCount = 0; size_t objectSlotCount = 0; @@ -122,8 +122,6 @@ bool rsdScriptInit(const Context *rsc, goto error; } - free(cachePath); - drv->mRoot = reinterpret_cast<int (*)()>(bccGetFuncAddr(drv->mBccScript, "root")); drv->mInit = reinterpret_cast<void (*)()>(bccGetFuncAddr(drv->mBccScript, "init")); drv->mFreeChildren = reinterpret_cast<void (*)()>(bccGetFuncAddr(drv->mBccScript, ".rs.dtor")); diff --git a/libs/rs/rsScript.h b/libs/rs/rsScript.h index 976ae78fb23e..99dceafaba37 100644 --- a/libs/rs/rsScript.h +++ b/libs/rs/rsScript.h @@ -67,7 +67,6 @@ public: }; Enviroment_t mEnviroment; - void initSlots(); void setSlot(uint32_t slot, Allocation *a); void setVar(uint32_t slot, const void *val, size_t len); void setVarObj(uint32_t slot, ObjectBase *val); |