From 009a06a7734272560d4d61350d98a2d279832ddf Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 26 Jul 2015 12:07:41 +1000 Subject: Move ARDOUR::touch_file to pbd/file_utils.h --- libs/ardour/utils.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libs/ardour/utils.cc') 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 #include -#include -#include - #include #include @@ -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) { -- cgit v1.2.3