File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -136,17 +136,9 @@ pub const Env = struct {
136
136
}
137
137
138
138
pub fn setUserContext (self : * Env , userctx : public.UserContext ) anyerror ! void {
139
- // you can't replace a user context defined in init.
140
- if (self .nat_ctx .userctx != null ) return error .UserContextExists ;
141
-
142
139
self .nat_ctx .userctx = userctx ;
143
140
}
144
141
145
- pub fn getUserContext (self : * Env ) ? * public.UserContext {
146
- if (self .nat_ctx .userctx ) | * ctx | return ctx ;
147
- return null ;
148
- }
149
-
150
142
// load user-defined Types into Javascript environement
151
143
pub fn load (self : Env , js_types : []usize ) anyerror ! void {
152
144
var tpls : [gen .Types .len ]TPL = undefined ;
Original file line number Diff line number Diff line change @@ -55,8 +55,6 @@ pub fn Env(
55
55
userctx : public.UserContext ,
56
56
) anyerror ! void );
57
57
58
- assertDecl (T , "getUserContext" , fn (self : * T ) ? * public.UserContext );
59
-
60
58
// start()
61
59
assertDecl (T , "start" , fn (
62
60
self : * T ,
You can’t perform that action at this time.
0 commit comments