Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Nov 6, 2017
1 parent 576d31d commit 5445b1f
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 26 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/DAV/SystemPrincipalBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function getGroupMemberSet($principal) {
* @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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function testNoSearchTerm() {
</nc:calendar-search>
XML;

$result = $this->parse($xml);
$this->parse($xml);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CardDAV/SyncServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function testEnsureSystemAddressBookExists() {
$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() {
Expand Down
18 changes: 0 additions & 18 deletions apps/files/js/detailsview.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@
this._detailFileInfoViews = [];

this._dirty = true;

// uncomment to add some dummy tabs for testing
//this._addTestTabs();
},

_onClose: function(event) {
Expand All @@ -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);
Expand Down
1 change: 0 additions & 1 deletion apps/files/js/favoritesfilelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ $(document).ready(function() {
},

reload: function() {
var tagName = OC.TAG_FAVORITE;
this.showMask();
if (this._reloadCall) {
this._reloadCall.abort();
Expand Down
2 changes: 1 addition & 1 deletion apps/files/lib/Command/Scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
* @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);
Expand Down
2 changes: 1 addition & 1 deletion apps/files/lib/Command/ScanAppData.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
* @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);
Expand Down
2 changes: 1 addition & 1 deletion lib/private/legacy/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static function lockFiles($view, $dir, $files) {
*
* @param int $size file size in bytes
* @param array $files override '.htaccess' and '.user.ini' locations
* @return bool false on failure, size on success
* @return bool|int false on failure, size on success
*/
public static function setUploadLimit($size, $files = []) {
//don't allow user to break his config
Expand Down
2 changes: 1 addition & 1 deletion lib/public/AppFramework/Db/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function execute($sql, array $params=[], $limit=null, $offset=null){
}
}

$result = $query->execute();
$query->execute();

return $query;
}
Expand Down

0 comments on commit 5445b1f

Please sign in to comment.