Skip to content

Commit d4cba51

Browse files
committed
Remove unused function
1 parent 06d7c5b commit d4cba51

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/HasTags.php

-11
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,6 @@ public function tagsTranslated(string | null $locale = null): MorphToMany
7575
->ordered();
7676
}
7777

78-
protected function getSelectRawForLocale(string $locale): string
79-
{
80-
$driverName = DB::connection()->getConfig('driver');
81-
82-
if ($driverName === 'pgsql') {
83-
return "name->>'{$locale}' as name_translated, slug->>'{$locale}' as slug_translated";
84-
} else {
85-
return "JSON_UNQUOTE(JSON_EXTRACT(name, '$.\"{$locale}\"')) as name_translated, JSON_UNQUOTE(JSON_EXTRACT(slug, '$.\"{$locale}\"')) as slug_translated";
86-
}
87-
}
88-
8978
public function setTagsAttribute(string | array | ArrayAccess | Tag $tags)
9079
{
9180
if (! $this->exists) {

0 commit comments

Comments
 (0)