| 72 | } |
| 73 | |
| 74 | void 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 | |
| 86 | void LuaFunctionList::watchChanges() |
| 87 | { |