Skip to content

Commit faabe83

Browse files
committed
refactor(env-inl.h): remove unused Environment class and clean up comments for clarity
1 parent 60e7700 commit faabe83

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

src/shims/env-inl.h

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
#ifndef SRC_SHIMS_ENV_INL_H_
22
#define SRC_SHIMS_ENV_INL_H_
33

4-
#include <napi.h>
4+
// This header exists for Node.js source compatibility.
5+
// src/upstream/node_sqlite.cc includes "env-inl.h", and we can't modify
6+
// upstream files (they're auto-synced from Node.js). The actual Environment
7+
// implementation is in util.h.
8+
#include "util.h"
59

6-
namespace node {
7-
8-
// Environment stubs
9-
class Environment {
10-
public:
11-
static Environment *GetCurrent(Napi::Env env) {
12-
static Environment instance;
13-
return &instance;
14-
}
15-
};
16-
17-
} // namespace node
18-
19-
#endif // SRC_SHIMS_ENV_INL_H_
10+
#endif // SRC_SHIMS_ENV_INL_H_

0 commit comments

Comments
 (0)