Skip to content

Commit 09550e9

Browse files
committed
removed google plus support
1 parent 3e08d55 commit 09550e9

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Adapters/Google.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public static function check(Response $response)
2121
'www.google.*/maps*',
2222
'calendar.google.com/calendar/*',
2323
'drive.google.com/file/*/view',
24-
'plus.google.com/*/posts/*',
2524
]);
2625
}
2726

@@ -47,11 +46,6 @@ public function getCode()
4746

4847
$url = $this->getResponse()->getUrl();
4948

50-
if ($url->getHost() === 'plus.google.com') {
51-
return '<script src="https://apis.google.com/js/plusone.js" type="text/javascript"></script>'
52-
.'<div class="g-post" data-href="'.$url.'"></div>';
53-
}
54-
5549
if ($url->getHost() === 'calendar.google.com') {
5650
return Utils::iframe($url);
5751
}
@@ -70,22 +64,6 @@ public function getCode()
7064
*/
7165
public function getImagesUrls()
7266
{
73-
if ($this->getResponse()->getUrl()->getHost() === 'plus.google.com') {
74-
return parent::getImagesUrls();
75-
}
76-
7767
return [];
7868
}
79-
80-
/**
81-
* {@inheritdoc}
82-
*/
83-
public function getProviderName()
84-
{
85-
if ($this->getResponse()->getUrl()->getHost() === 'plus.google.com') {
86-
return 'Google Plus';
87-
}
88-
89-
return parent::getProviderName();
90-
}
9169
}

0 commit comments

Comments
 (0)