Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ca68fb

Browse files
author
Michał Gaździk
committed
remove reduntant code
1 parent f8ec38e commit 2ca68fb

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ before_script:
107107
- mysql -e 'create database piwik_tests;'
108108

109109
- ./tests/travis/prepare.sh
110-
# - ./plugins/ShortcodeTracker/setup_webserver.sh
110+
# - ./tests/travis/setup_webserver.sh
111111

112112
- cd tests/PHPUnit
113113

API.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ public function performRedirectForShortcode($code)
300300

301301
Piwik::postEvent(ShortcodeTracker::TRACK_REDIRECT_VISIT_EVENT, array($shortCode));
302302

303-
$targetUrl = $this->getCache()->getRedirectUrlForShortcode($code);
304-
305-
306303
if ($shortCode === null) {
307304
throw new UnableToRedirectException(Piwik::translate('ShortcodeTracker_unable_to_perform_redirect'));
308305
}

0 commit comments

Comments
 (0)