Browse Source

@uppy/aws-s3: remove `uploaderSockets` (#5200)

Mikael Finstad 11 months ago
parent
commit
388f8b78ae
1 changed files with 0 additions and 9 deletions
  1. 0 9
      packages/@uppy/aws-s3/src/index.ts

+ 0 - 9
packages/@uppy/aws-s3/src/index.ts

@@ -320,8 +320,6 @@ export default class AwsS3Multipart<
 
   protected uploaders: Record<string, MultipartUploader<M, B> | null>
 
-  protected uploaderSockets: Record<string, never>
-
   constructor(uppy: Uppy<M, B>, opts?: AwsS3MultipartOptions<M, B>) {
     super(uppy, {
       ...defaultOptions,
@@ -381,7 +379,6 @@ export default class AwsS3Multipart<
 
     this.uploaders = Object.create(null)
     this.uploaderEvents = Object.create(null)
-    this.uploaderSockets = Object.create(null)
   }
 
   private [Symbol.for('uppy test: getClient')]() {
@@ -410,12 +407,6 @@ export default class AwsS3Multipart<
       this.uploaderEvents[fileID]!.remove()
       this.uploaderEvents[fileID] = null
     }
-    if (this.uploaderSockets[fileID]) {
-      // @ts-expect-error TODO: remove this block in the next major
-      this.uploaderSockets[fileID].close()
-      // @ts-expect-error TODO: remove this block in the next major
-      this.uploaderSockets[fileID] = null
-    }
   }
 
   // TODO: make this a private method in the next major