Skip to content

Commit

Permalink
Remove legacy parser
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 24, 2019
1 parent 261dcdf commit 1289ea7
Show file tree
Hide file tree
Showing 34 changed files with 293 additions and 3,171 deletions.
7 changes: 0 additions & 7 deletions lib/Controller/APIv1.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use OCA\Activity\CurrentUser;
use OCA\Activity\Data;
use OCA\Activity\GroupHelper;
use OCA\Activity\PlainTextParser;
use OCA\Activity\UserSettings;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCSController;
Expand All @@ -41,9 +40,6 @@ class APIv1 extends OCSController {
/** @var UserSettings */
protected $userSettings;

/** @var PlainTextParser */
protected $parser;

/** @var CurrentUser */
protected $currentUser;

Expand All @@ -53,22 +49,19 @@ class APIv1 extends OCSController {
* @param Data $data
* @param GroupHelper $groupHelper
* @param UserSettings $userSettings
* @param PlainTextParser $parser
* @param CurrentUser $currentUser
*/
public function __construct($appName,
IRequest $request,
Data $data,
GroupHelper $groupHelper,
UserSettings $userSettings,
PlainTextParser $parser,
CurrentUser $currentUser) {
parent::__construct($appName, $request);

$this->data = $data;
$this->userSettings = $userSettings;
$this->groupHelper = $groupHelper;
$this->parser = $parser;
$this->currentUser = $currentUser;
}

Expand Down
3 changes: 0 additions & 3 deletions lib/Controller/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

use OCA\Activity\Data;
use OCA\Activity\GroupHelper;
use OCA\Activity\PlainTextParser;
use OCA\Activity\UserSettings;
use OCP\Activity\IManager;
use OCP\AppFramework\Controller;
Expand Down Expand Up @@ -108,9 +107,7 @@ public function show() {

// Overwrite user and language in the helper
$this->l = $this->l10nFactory->get('activity', $userLang);
$parser = new PlainTextParser($this->l);
$this->helper->setL10n($this->l);
$this->helper->setUser($user);

$description = (string) $this->l->t('Personal activity feed for %s', $user);
$response = $this->data->get($this->helper, $this->settings, $user, 0, self::DEFAULT_PAGE_SIZE, 'desc', 'all');
Expand Down
1 change: 0 additions & 1 deletion lib/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public function get(GroupHelper $groupHelper, UserSettings $userSettings, $user,
if ($user === '') {
throw new \OutOfBoundsException('Invalid user', 1);
}
$groupHelper->setUser($user);

$activeFilter = null;
try {
Expand Down
202 changes: 0 additions & 202 deletions lib/DataHelper.php

This file was deleted.

79 changes: 0 additions & 79 deletions lib/Extension/LegacyParser.php

This file was deleted.

37 changes: 0 additions & 37 deletions lib/Formatter/BaseFormatter.php

This file was deleted.

Loading

0 comments on commit 1289ea7

Please sign in to comment.