summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-03-20 15:58:04 -0300
committerVitor Mattos <vitor@php.rio>2023-03-20 15:58:04 -0300
commitf798b20c30621d301343f16fc273d2e87776cccc (patch)
tree04f62ed4e1f6f0295d1e35f65422fac5ebb3132c
parentd8a3d221bc56f484ee44f4c374fb0a8a886c88f4 (diff)
Remove unused property
The property config isn't used at this class Signed-off-by: Vitor Mattos <vitor@php.rio>
-rw-r--r--lib/Service/AvatarService.php4
-rw-r--r--tests/php/Service/AvatarServiceTest.php5
2 files changed, 0 insertions, 9 deletions
diff --git a/lib/Service/AvatarService.php b/lib/Service/AvatarService.php
index a5e8c6213..e4211e127 100644
--- a/lib/Service/AvatarService.php
+++ b/lib/Service/AvatarService.php
@@ -35,7 +35,6 @@ use OCP\Files\SimpleFS\InMemoryFile;
use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Files\SimpleFS\ISimpleFolder;
use OCP\IAvatarManager;
-use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\IUser;
@@ -44,7 +43,6 @@ use OCP\Security\ISecureRandom;
class AvatarService {
private IAppData $appData;
private IL10N $l;
- private IConfig $config;
private IURLGenerator $url;
private ISecureRandom $random;
private RoomService $roomService;
@@ -53,7 +51,6 @@ class AvatarService {
public function __construct(
IAppData $appData,
IL10N $l,
- IConfig $config,
IURLGenerator $url,
ISecureRandom $random,
RoomService $roomService,
@@ -61,7 +58,6 @@ class AvatarService {
) {
$this->appData = $appData;
$this->l = $l;
- $this->config = $config;
$this->url = $url;
$this->random = $random;
$this->roomService = $roomService;
diff --git a/tests/php/Service/AvatarServiceTest.php b/tests/php/Service/AvatarServiceTest.php
index 35287d711..4219c6c87 100644
--- a/tests/php/Service/AvatarServiceTest.php
+++ b/tests/php/Service/AvatarServiceTest.php
@@ -31,7 +31,6 @@ use OCA\Talk\Service\AvatarService;
use OCA\Talk\Service\RoomService;
use OCP\Files\IAppData;
use OCP\IAvatarManager;
-use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Security\ISecureRandom;
@@ -44,8 +43,6 @@ class AvatarServiceTest extends TestCase {
private $appData;
/** @var IL10N|MockObject */
private $l;
- /** @var IConfig|MockObject */
- private $config;
/** @var IURLGenerator|MockObject */
private $url;
/** @var ISecureRandom|MockObject */
@@ -60,7 +57,6 @@ class AvatarServiceTest extends TestCase {
$this->appData = $this->createMock(IAppData::class);
$this->l = $this->createMock(IL10N::class);
- $this->config = $this->createMock(IConfig::class);
$this->url = $this->createMock(IURLGenerator::class);
$this->random = $this->createMock(ISecureRandom::class);
$this->roomService = $this->createMock(RoomService::class);
@@ -68,7 +64,6 @@ class AvatarServiceTest extends TestCase {
$this->service = new AvatarService(
$this->appData,
$this->l,
- $this->config,
$this->url,
$this->random,
$this->roomService,