diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-07-26 12:07:41 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-07-26 12:15:19 +1000 |
commit | 009a06a7734272560d4d61350d98a2d279832ddf (patch) | |
tree | 8dad6fc8e4e7285f85d328b0e8a03749a20edc85 /libs/ardour/utils.cc | |
parent | 1a520b376f9ac9a76594b284d91954c30905ec03 (diff) |
Move ARDOUR::touch_file to pbd/file_utils.h
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r-- | libs/ardour/utils.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index b0088ef251..bda719780d 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -42,9 +42,6 @@ #include <errno.h> #include <regex.h> -#include <glib.h> -#include <glib/gstdio.h> - #include <glibmm/miscutils.h> #include <glibmm/fileutils.h> @@ -299,17 +296,6 @@ ARDOUR::cmp_nocase_utf8 (const string& s1, const string& s2) return retval; } -int -ARDOUR::touch_file (string path) -{ - int fd = g_open (path.c_str(), O_RDWR|O_CREAT, 0660); - if (fd >= 0) { - close (fd); - return 0; - } - return 1; -} - string ARDOUR::region_name_from_path (string path, bool strip_channels, bool add_channel_suffix, uint32_t total, uint32_t this_one) { |