mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Remove deprecated methods
This commit is contained in:
parent
12e46e5b2b
commit
198a850f8d
@ -391,46 +391,6 @@ class GoogleSitemap {
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable pings to google.com whenever sitemap changes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function enable_google_notification() {
|
||||
Deprecation::notice('1.1', 'GoogleSitemap::enable() is deprecated. Please use Config API instead. See documentation.');
|
||||
|
||||
Config::inst()->remove('GoogleSitemap', 'google_notification_enabled');
|
||||
Config::inst()->update('GoogleSitemap', 'google_notification_enabled', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables pings to google when the sitemap changes.
|
||||
*
|
||||
* @deprecated 1.1
|
||||
* @return void
|
||||
*/
|
||||
public static function disable_google_notification() {
|
||||
Deprecation::notice('1.1', 'GoogleSitemap::enable() is deprecated. Please use Config API instead. See documentation.');
|
||||
|
||||
Config::inst()->remove('GoogleSitemap', 'google_notification_enabled');
|
||||
Config::inst()->update('GoogleSitemap', 'google_notification_enabled', false);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable Google Sitemap support. Requests to the sitemap.xml route will
|
||||
* result in an XML sitemap being provided.
|
||||
*
|
||||
* @deprecated 1.1
|
||||
* @return void
|
||||
*/
|
||||
public static function enable() {
|
||||
Deprecation::notice('1.1', 'GoogleSitemap::enable() is deprecated. Please use Config API instead. See documentation.');
|
||||
|
||||
Config::inst()->remove('GoogleSitemap', 'enabled');
|
||||
Config::inst()->update('GoogleSitemap', 'enabled', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Is GoogleSitemap enabled?
|
||||
*
|
||||
@ -439,18 +399,4 @@ class GoogleSitemap {
|
||||
public static function enabled() {
|
||||
return (Config::inst()->get('GoogleSitemap', 'enabled', Config::INHERITED));
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable Google Sitemap support. Any requests to the sitemap.xml route
|
||||
* will produce a 404 response.
|
||||
*
|
||||
* @deprecated 1,1
|
||||
* @return void
|
||||
*/
|
||||
public static function disable() {
|
||||
Deprecation::notice('1.1', 'GoogleSitemap::disable() is deprecated. Please use Config API instead. See documentation.');
|
||||
|
||||
Config::inst()->remove('GoogleSitemap', 'enabled');
|
||||
Config::inst()->update('GoogleSitemap', 'enabled', false);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user