Skip to content

Commit fb82cd4

Browse files
remove console.log statements
1 parent 7972cc9 commit fb82cd4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/solid.ts

-8
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ function hookGetItemURL (rs): void {
3636
if (rs._origBaseClientGetItemURL) { return; }
3737
rs._origBaseClientGetItemURL = BaseClient.prototype.getItemURL;
3838
BaseClient.prototype.getItemURL = function (path: string): string {
39-
console.log('getItemURL from', path);
4039
if (typeof path !== 'string') {
4140
throw 'Argument \'path\' of baseClient.getItemURL must be a string';
4241
}
4342
if (this.storage.connected) {
4443
if (path.startsWith('/')) {
4544
path = path.substring(1);
4645
}
47-
console.log('getItemURL to', this.selectedPodURL + cleanPath(path));
4846
return this.selectedPodURL + cleanPath(path);
4947
} else {
5048
return undefined;
@@ -129,7 +127,6 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
129127

130128
constructor(remoteStorage) {
131129
super(remoteStorage);
132-
console.log('Solid constructor');
133130
this.online = true;
134131
this.addEvents(['connected', 'not-connected', 'pod-not-selected']);
135132

@@ -400,12 +397,10 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
400397
* @protected
401398
*/
402399
get (path: string, options: { ifNoneMatch?: string } = {}): Promise<RemoteResponse> {
403-
console.log('Solid get', path, options);
404400
const fileURL = this.getFileURL(path);
405401

406402
if (path.slice(-1) === '/') {
407403
return getSolidDataset(fileURL, { fetch: this.session.fetch }).then(containerDataset => {
408-
console.log('container data set', containerDataset);
409404
const URLs: UrlString[] = getContainedResourceUrlAll(containerDataset);
410405
const listing = URLs.reduce((map, item) => {
411406
const itemName = item.substring(fileURL.length);
@@ -479,8 +474,6 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
479474
* @protected
480475
*/
481476
put (path: string, body: XMLHttpRequestBodyInit, contentType: string, options: { ifMatch?: string; ifNoneMatch?: string } = {}): Promise<RemoteResponse> {
482-
console.log('Solid put', path, contentType);
483-
484477
const fileURL = this.getFileURL(path);
485478
const fetch = this.session.fetch;
486479

@@ -527,7 +520,6 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
527520
* @protected
528521
*/
529522
delete (path: string, options: { ifMatch?: string } = {}): Promise<RemoteResponse> {
530-
console.log('Solid delete', path);
531523
const fileURL = this.getFileURL(path);
532524

533525
return deleteFile(fileURL, { fetch: this.session.fetch }).then(() => {

0 commit comments

Comments
 (0)