@@ -287,10 +287,6 @@ export function startSession(context?: SessionContext): Session {
287
287
// Afterwards we set the new session on the scope
288
288
isolationScope . setSession ( session ) ;
289
289
290
- // TODO (v8): Remove this and only use the isolation scope(?).
291
- // For v7 though, we can't "soft-break" people using getCurrentHub().getScope().setSession()
292
- currentScope . setSession ( session ) ;
293
-
294
290
return session ;
295
291
}
296
292
@@ -309,22 +305,15 @@ export function endSession(): void {
309
305
310
306
// the session is over; take it off of the scope
311
307
isolationScope . setSession ( ) ;
312
-
313
- // TODO (v8): Remove this and only use the isolation scope(?).
314
- // For v7 though, we can't "soft-break" people using getCurrentHub().getScope().setSession()
315
- currentScope . setSession ( ) ;
316
308
}
317
309
318
310
/**
319
311
* Sends the current Session on the scope
320
312
*/
321
313
function _sendSessionUpdate ( ) : void {
322
314
const isolationScope = getIsolationScope ( ) ;
323
- const currentScope = getCurrentScope ( ) ;
324
315
const client = getClient ( ) ;
325
- // TODO (v8): Remove currentScope and only use the isolation scope(?).
326
- // For v7 though, we can't "soft-break" people using getCurrentHub().getScope().setSession()
327
- const session = currentScope . getSession ( ) || isolationScope . getSession ( ) ;
316
+ const session = isolationScope . getSession ( ) ;
328
317
if ( session && client ) {
329
318
client . captureSession ( session ) ;
330
319
}
0 commit comments