From e8731410a4714a3383dfc5342f835e0177b58ff7 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Mon, 8 Apr 2013 15:35:16 -0400 Subject: No ticket. Use data_priv methods instead of jQuery._removeData and jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234 --- src/data.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/data.js') diff --git a/src/data.js b/src/data.js index f5d3d178a..45d6ed052 100644 --- a/src/data.js +++ b/src/data.js @@ -183,15 +183,6 @@ Data.prototype = { } }; -// This will be used by remove()/cleanData() in manipulation to sever -// remaining references to node objects. One day we'll replace the dual -// arrays with a WeakMap and this won't be an issue. -// (Splices the data objects out of the internal cache arrays) -function data_discard( owner ) { - data_user.discard( owner ); - data_priv.discard( owner ); -} - // These may be used throughout the jQuery core codebase data_user = new Data(); data_priv = new Data(); -- cgit v1.2.3