| 188 | } |
| 189 | |
| 190 | bool OHDUtil::file_exists_and_delete(const char* filename) { |
| 191 | bool ret = false; |
| 192 | if (OHDFilesystemUtil::exists(filename)) { |
| 193 | ret = true; |
| 194 | openhd::log::get_default()->warn("Got action, deleting {}", filename); |
| 195 | OHDFilesystemUtil::remove_if_existing(filename); |
| 196 | } |
| 197 | return ret; |
| 198 | } |
| 199 | |
| 200 | std::vector<std::string> OHDUtil::split_string_by_newline( |
| 201 | const std::string& str, const bool include_newline_character) { |
nothing calls this directly
no outgoing calls
no test coverage detected