MCPcopy Create free account
hub / github.com/clementgallet/libTAS / removeForFile

Method removeForFile

src/program/lua/LuaFunctionList.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void LuaFunctionList::removeForFile(int row)
75{
76 const std::string& file = fileList[row].file;
77 functions.remove_if([&file](const NamedLuaFunction& nlf){ return 0 == file.compare(nlf.file); });
78
79 inotify_rm_watch(inotifyfd, fileList[row].wd);
80 if (fileList[row].lua_state)
81 lua_close(fileList[row].lua_state);
82 fileSet.erase(file);
83 fileList.erase(fileList.begin() + row);
84}
85
86void LuaFunctionList::watchChanges()
87{

Callers 1

removeFileMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected