Bug 1146295: Remove unused FuncZero function; r=h4writer

This commit is contained in:
Benjamin Bouvier 2015-03-23 11:39:10 +01:00
parent ade9b22b83
commit a1c9ed7f61

View File

@ -849,22 +849,6 @@ FuncConvertBits(JSContext *cx, unsigned argc, Value *vp)
return StoreResult<Vret>(cx, args, copy);
}
template<typename Vret>
static bool
FuncZero(JSContext *cx, unsigned argc, Value *vp)
{
typedef typename Vret::Elem RetElem;
CallArgs args = CallArgsFromVp(argc, vp);
if (args.length() != 0)
return ErrorBadArgs(cx);
RetElem result[Vret::lanes];
for (unsigned i = 0; i < Vret::lanes; i++)
result[i] = RetElem(0);
return StoreResult<Vret>(cx, args, result);
}
template<typename Vret>
static bool
FuncSplat(JSContext *cx, unsigned argc, Value *vp)