Remove unused ContentHandlerDefaultModelFor hook

This was supposed to be removed in 7f02824ec4 except it got missed
somehow...

There was nothing registering it in extension.json, so it was entirely
unused.

Change-Id: I991c464ef0b60543a0ecd4cb1f9dda62e9d73dd4
This commit is contained in:
Kunal Mehta 2016-09-15 18:17:40 -07:00
parent 990ce5b345
commit 04f2027d77

View file

@ -195,26 +195,6 @@ class VisualEditorHooks {
}
}
/**
* Convert the content model of a message that is actually JSON to JSON.
* This only affects validation and UI when saving and editing, not
* loading the content.
*
* @param Title $title
* @param string $model
* @return bool
*/
public static function onContentHandlerDefaultModelFor( Title $title, &$model ) {
if (
$title->inNamespace( NS_MEDIAWIKI ) &&
$title->getText() === 'Visualeditor-quick-access-characters.json'
) {
$model = CONTENT_MODEL_JSON;
}
return true;
}
/**
* Changes the Edit tab and adds the VisualEditor tab.
*