summaryrefslogtreecommitdiffstats
path: root/js/src/vm/SelfHosting.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-01-31 14:49:35 +0100
committerGitHub <noreply@github.com>2019-01-31 14:49:35 +0100
commitfecab2c542df1e1aed5c9cb9ef45d113533c1dee (patch)
treedb024cf75b8c7196c918bba2c100021556604c5f /js/src/vm/SelfHosting.cpp
parentaa28523a553f5e2553c781081eb21715aedb7eaf (diff)
parent493c956d8de0fdb763851d9c12cfd248776b80b8 (diff)
downloadUXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.gz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.lz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.xz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.zip
Merge pull request #952 from adeshkp/remove-telemetry-js
Remove telemetry leftovers from JS engine.
Diffstat (limited to 'js/src/vm/SelfHosting.cpp')
-rw-r--r--js/src/vm/SelfHosting.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/js/src/vm/SelfHosting.cpp b/js/src/vm/SelfHosting.cpp
index 08670c833..328a960b6 100644
--- a/js/src/vm/SelfHosting.cpp
+++ b/js/src/vm/SelfHosting.cpp
@@ -1904,23 +1904,6 @@ intrinsic_RuntimeDefaultLocale(JSContext* cx, unsigned argc, Value* vp)
}
static bool
-intrinsic_AddContentTelemetry(JSContext* cx, unsigned argc, Value* vp)
-{
- CallArgs args = CallArgsFromVp(argc, vp);
- MOZ_ASSERT(args.length() == 2);
-
- int id = args[0].toInt32();
- MOZ_ASSERT(id < JS_TELEMETRY_END);
- MOZ_ASSERT(id >= 0);
-
- if (!cx->compartment()->isProbablySystemOrAddonCode())
- cx->runtime()->addTelemetry(id, args[1].toInt32());
-
- args.rval().setUndefined();
- return true;
-}
-
-static bool
intrinsic_ConstructFunction(JSContext* cx, unsigned argc, Value* vp)
{
CallArgs args = CallArgsFromVp(argc, vp);
@@ -2273,7 +2256,6 @@ static const JSFunctionSpec intrinsic_functions[] = {
JS_FN("DecompileArg", intrinsic_DecompileArg, 2,0),
JS_FN("_FinishBoundFunctionInit", intrinsic_FinishBoundFunctionInit, 3,0),
JS_FN("RuntimeDefaultLocale", intrinsic_RuntimeDefaultLocale, 0,0),
- JS_FN("AddContentTelemetry", intrinsic_AddContentTelemetry, 2,0),
JS_INLINABLE_FN("_IsConstructing", intrinsic_IsConstructing, 0,0,
IntrinsicIsConstructing),