summaryrefslogtreecommitdiffstats
path: root/player/javascript/defaults.js
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-21 11:35:14 -0500
committerDudemanguy <random342@airmail.cc>2023-11-22 16:29:43 +0000
commit86b498ecc0e6276bb905df57f479d0506b45ba53 (patch)
tree399cea9a9207eea5e8298f072768550ec1356c13 /player/javascript/defaults.js
parent5220725ca506bc40f1f0c3f0507fa337605f1dba (diff)
downloadmpv-86b498ecc0e6276bb905df57f479d0506b45ba53.tar.bz2
mpv-86b498ecc0e6276bb905df57f479d0506b45ba53.tar.xz
player: remove shared-script-properties property
This property was never encouraged. The manual even stated that "You should avoid using it, unless you absolutely have to." Since we now have user-data which is superior in every single way and replaces this, delete this property. The manual also has threatened people for years with the line "It's a makeshift solution which could go away any time (for example, when a better solution becomes available)." We were nice and deprecated it in 1d00aee8e191c9689a20e67e3d6dfd2af6ad2588 for a while to give script authors some time to update. Let's remove it for good now.
Diffstat (limited to 'player/javascript/defaults.js')
-rw-r--r--player/javascript/defaults.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/player/javascript/defaults.js b/player/javascript/defaults.js
index d906ec2448..be4fca61c9 100644
--- a/player/javascript/defaults.js
+++ b/player/javascript/defaults.js
@@ -177,28 +177,6 @@ mp.abort_async_command = function abort_async_command(id) {
mp._abort_async_command(id);
}
-// shared-script-properties - always an object, even if without properties
-function shared_script_property_set(name, val) {
- if (arguments.length > 1)
- return mp.commandv("change-list", "shared-script-properties", "append", "" + name + "=" + val);
- else
- return mp.commandv("change-list", "shared-script-properties", "remove", name);
-}
-
-function shared_script_property_get(name) {
- return mp.get_property_native("shared-script-properties")[name];
-}
-
-function shared_script_property_observe(name, cb) {
- return mp.observe_property("shared-script-properties", "native",
- function shared_props_cb(_name, val) { cb(name, val[name]) }
- );
-}
-
-mp.utils.shared_script_property_set = shared_script_property_set;
-mp.utils.shared_script_property_get = shared_script_property_get;
-mp.utils.shared_script_property_observe = shared_script_property_observe;
-
// osd-ass
var next_assid = 1;
mp.create_osd_overlay = function create_osd_overlay(format) {