@@ -49,21 +49,6 @@ export class Scope implements ScopeInterface {
49
49
return this ;
50
50
}
51
51
52
- /**
53
- * This will be called on every set call.
54
- */
55
- protected notifyScopeListeners ( ) : void {
56
- if ( ! this . notifyingListeners ) {
57
- this . notifyingListeners = true ;
58
- setTimeout ( ( ) => {
59
- this . scopeListeners . forEach ( callback => {
60
- callback ( this ) ;
61
- } ) ;
62
- this . notifyingListeners = false ;
63
- } ) ;
64
- }
65
- }
66
-
67
52
/**
68
53
* This will be called after {@link applyToEvent} is finished.
69
54
*/
@@ -97,7 +82,6 @@ export class Scope implements ScopeInterface {
97
82
*/
98
83
public setUser ( user : User ) : Scope {
99
84
this . user = safeNormalize ( user ) ;
100
- this . notifyScopeListeners ( ) ;
101
85
return this ;
102
86
}
103
87
@@ -106,7 +90,6 @@ export class Scope implements ScopeInterface {
106
90
*/
107
91
public setTag ( key : string , value : string ) : Scope {
108
92
this . tags = { ...this . tags , [ key ] : safeNormalize ( value ) } ;
109
- this . notifyScopeListeners ( ) ;
110
93
return this ;
111
94
}
112
95
@@ -115,7 +98,6 @@ export class Scope implements ScopeInterface {
115
98
*/
116
99
public setExtra ( key : string , extra : any ) : Scope {
117
100
this . extra = { ...this . extra , [ key ] : safeNormalize ( extra ) } ;
118
- this . notifyScopeListeners ( ) ;
119
101
return this ;
120
102
}
121
103
@@ -124,7 +106,6 @@ export class Scope implements ScopeInterface {
124
106
*/
125
107
public setFingerprint ( fingerprint : string [ ] ) : Scope {
126
108
this . fingerprint = safeNormalize ( fingerprint ) ;
127
- this . notifyScopeListeners ( ) ;
128
109
return this ;
129
110
}
130
111
@@ -133,7 +114,6 @@ export class Scope implements ScopeInterface {
133
114
*/
134
115
public setLevel ( level : Severity ) : Scope {
135
116
this . level = safeNormalize ( level ) ;
136
- this . notifyScopeListeners ( ) ;
137
117
return this ;
138
118
}
139
119
@@ -165,7 +145,6 @@ export class Scope implements ScopeInterface {
165
145
this . user = { } ;
166
146
this . level = undefined ;
167
147
this . fingerprint = undefined ;
168
- this . notifyScopeListeners ( ) ;
169
148
}
170
149
171
150
/**
@@ -176,7 +155,6 @@ export class Scope implements ScopeInterface {
176
155
maxBreadcrumbs !== undefined && maxBreadcrumbs >= 0
177
156
? [ ...this . breadcrumbs , safeNormalize ( breadcrumb ) ] . slice ( - maxBreadcrumbs )
178
157
: [ ...this . breadcrumbs , safeNormalize ( breadcrumb ) ] ;
179
- this . notifyScopeListeners ( ) ;
180
158
}
181
159
182
160
/**
0 commit comments