diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-11-07 16:18:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 16:18:40 +0100 |
commit | f55732a18facfe52167e346a8aa40cfc66707fa0 (patch) | |
tree | 50d8e2fc1d9b222d55d88d4aa7bc76ba971fe50c /apps | |
parent | 8566f8b8ee421ae1549e988c92c494deaf2829c2 (diff) | |
parent | 5445b1ff172d5186530ab0352ac35cb028127312 (diff) | |
download | nextcloud-server-f55732a18facfe52167e346a8aa40cfc66707fa0.tar.gz nextcloud-server-f55732a18facfe52167e346a8aa40cfc66707fa0.zip |
Merge pull request #7075 from nextcloud/remove-unused-variables
Remove unused variables
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/DAV/SystemPrincipalBackend.php | 2 | ||||
-rw-r--r-- | apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php | 2 | ||||
-rw-r--r-- | apps/dav/tests/unit/CardDAV/SyncServiceTest.php | 2 | ||||
-rw-r--r-- | apps/files/js/detailsview.js | 18 | ||||
-rw-r--r-- | apps/files/js/favoritesfilelist.js | 1 | ||||
-rw-r--r-- | apps/files/lib/Command/Scan.php | 2 | ||||
-rw-r--r-- | apps/files/lib/Command/ScanAppData.php | 2 |
7 files changed, 5 insertions, 24 deletions
diff --git a/apps/dav/lib/DAV/SystemPrincipalBackend.php b/apps/dav/lib/DAV/SystemPrincipalBackend.php index 5b3346cf496..e3b9302886e 100644 --- a/apps/dav/lib/DAV/SystemPrincipalBackend.php +++ b/apps/dav/lib/DAV/SystemPrincipalBackend.php @@ -164,7 +164,7 @@ class SystemPrincipalBackend extends AbstractBackend { * @return array */ function getGroupMembership($principal) { - list($prefix, $name) = \Sabre\Uri\split($principal); + list($prefix, ) = \Sabre\Uri\split($principal); if ($prefix === 'principals/system') { $principal = $this->getPrincipalByPath($principal); diff --git a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php index 35d86fbf34b..30cf768feab 100644 --- a/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php +++ b/apps/dav/tests/unit/CalDAV/Search/Request/CalendarSearchReportTest.php @@ -201,7 +201,7 @@ XML; </nc:calendar-search> XML; - $result = $this->parse($xml); + $this->parse($xml); } /** diff --git a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php index a7026cfb346..1ca27d61ce4 100644 --- a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php +++ b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php @@ -81,7 +81,7 @@ class SyncServiceTest extends TestCase { $logger = $this->getMockBuilder(ILogger::class)->disableOriginalConstructor()->getMock(); $accountManager = $this->getMockBuilder(AccountManager::class)->disableOriginalConstructor()->getMock(); $ss = new SyncService($backend, $userManager, $logger, $accountManager); - $book = $ss->ensureSystemAddressBookExists('principals/users/adam', 'contacts', []); + $ss->ensureSystemAddressBookExists('principals/users/adam', 'contacts', []); } public function testUpdateAndDeleteUser() { diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js index a896e84fdc0..7bfc3d5ad7b 100644 --- a/apps/files/js/detailsview.js +++ b/apps/files/js/detailsview.js @@ -78,9 +78,6 @@ this._detailFileInfoViews = []; this._dirty = true; - - // uncomment to add some dummy tabs for testing - //this._addTestTabs(); }, _onClose: function(event) { @@ -102,21 +99,6 @@ this.selectTab(tabId); }, - _addTestTabs: function() { - for (var j = 0; j < 2; j++) { - var testView = new OCA.Files.DetailTabView({id: 'testtab' + j}); - testView.index = j; - testView.getLabel = function() { return 'Test tab ' + this.index; }; - testView.render = function() { - this.$el.empty(); - for (var i = 0; i < 100; i++) { - this.$el.append('<div>Test tab ' + this.index + ' row ' + i + '</div>'); - } - }; - this._tabViews.push(testView); - } - }, - template: function(vars) { if (!this._template) { this._template = Handlebars.compile(TEMPLATE); diff --git a/apps/files/js/favoritesfilelist.js b/apps/files/js/favoritesfilelist.js index 4c2cf3ce818..8c9c125d0a1 100644 --- a/apps/files/js/favoritesfilelist.js +++ b/apps/files/js/favoritesfilelist.js @@ -66,7 +66,6 @@ $(document).ready(function() { }, reload: function() { - var tagName = OC.TAG_FAVORITE; this.showMask(); if (this._reloadCall) { this._reloadCall.abort(); diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index d81beb0eaf3..4026af2db79 100644 --- a/apps/files/lib/Command/Scan.php +++ b/apps/files/lib/Command/Scan.php @@ -322,7 +322,7 @@ class Scan extends Base { * @return string */ protected function formatExecTime() { - list($secs, $tens) = explode('.', sprintf("%.1f", ($this->execTime))); + list($secs, ) = explode('.', sprintf("%.1f", ($this->execTime))); # if you want to have microseconds add this: . '.' . $tens; return date('H:i:s', $secs); diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php index 841b36fa110..f347cb868b1 100644 --- a/apps/files/lib/Command/ScanAppData.php +++ b/apps/files/lib/Command/ScanAppData.php @@ -260,7 +260,7 @@ class ScanAppData extends Base { * @return string */ protected function formatExecTime() { - list($secs, $tens) = explode('.', sprintf("%.1f", ($this->execTime))); + list($secs, ) = explode('.', sprintf("%.1f", ($this->execTime))); # if you want to have microseconds add this: . '.' . $tens; return date('H:i:s', $secs); |