Skip to content

Commit cfdd2ff

Browse files
committed
migrate to glue methods cleanup
1 parent eae7d59 commit cfdd2ff

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

nix_mx.cc

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,6 @@ static void entity_updated_at(const extractor &input, infusor &output)
4242

4343
// *** ***
4444

45-
typedef void(*fn_t)(const extractor &input, infusor &output);
46-
47-
struct fendpoint {
48-
49-
fendpoint(std::string name, fn_t fn) : name(name), fn(fn) {}
50-
51-
std::string name;
52-
fn_t fn;
53-
};
54-
55-
const std::vector<fendpoint> funcs = {
56-
};
57-
5845
//glue "globals"
5946
std::once_flag init_flag;
6047
static glue::registry *methods = nullptr;
@@ -200,18 +187,6 @@ void mexFunction(int nlhs,
200187
}
201188
#endif
202189

203-
for (const auto &fn : funcs) {
204-
205-
if (processed) {
206-
break;
207-
}
208-
209-
if (fn.name == cmd) {
210-
fn.fn(input, output);
211-
processed = true;
212-
}
213-
}
214-
215190
}
216191
catch (const std::invalid_argument &e) {
217192
mexErrMsgIdAndTxt("nix:arg:inval", e.what());

0 commit comments

Comments
 (0)