clear waveform cache when shape changes - fixes #6525
[ardour.git] / libs / ardour / utils.cc
index 2ada8ce79beaf294126a806cc6cc776a2751a0ba..bda719780dba1c05f0eb20a422aa948df1f49a06 100644 (file)
@@ -296,17 +296,6 @@ ARDOUR::cmp_nocase_utf8 (const string& s1, const string& s2)
        return retval;
 }
 
-int
-ARDOUR::touch_file (string path)
-{
-       int fd = 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)
 {
@@ -525,11 +514,8 @@ ARDOUR::meter_falloff_to_float (MeterFalloff falloff)
        case MeterFalloffModerate:
                return METER_FALLOFF_MODERATE;
        case MeterFalloffFast:
-               return METER_FALLOFF_FAST;
-       case MeterFalloffFaster:
-               return METER_FALLOFF_FASTER;
+       case MeterFalloffFaster:  // backwards compat enum MeterFalloff
        case MeterFalloffFastest:
-               return METER_FALLOFF_FASTEST;
        default:
                return METER_FALLOFF_FAST;
        }
@@ -556,14 +542,8 @@ ARDOUR::meter_falloff_from_float (float val)
        else if (val <= METER_FALLOFF_MEDIUM) {
                return MeterFalloffMedium;
        }
-       else if (val <= METER_FALLOFF_FAST) {
-               return MeterFalloffFast;
-       }
-       else if (val <= METER_FALLOFF_FASTER) {
-               return MeterFalloffFaster;
-       }
        else {
-               return MeterFalloffFastest;
+               return MeterFalloffFast;
        }
 }