mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
Remove unused source file_changed methods.
git-svn-id: svn://localhost/ardour2/branches/3.0@5917 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
01b761bbaa
commit
4c43ef5e1f
4 changed files with 0 additions and 31 deletions
|
|
@ -141,8 +141,6 @@ class AudioSource : virtual public Source,
|
||||||
nframes_t peak_leftover_size;
|
nframes_t peak_leftover_size;
|
||||||
Sample* peak_leftovers;
|
Sample* peak_leftovers;
|
||||||
nframes_t peak_leftover_frame;
|
nframes_t peak_leftover_frame;
|
||||||
|
|
||||||
bool file_changed (Glib::ustring path);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -137,9 +137,6 @@ class MidiSource : virtual public Source
|
||||||
mutable double _length_beats;
|
mutable double _length_beats;
|
||||||
mutable sframes_t _last_read_end;
|
mutable sframes_t _last_read_end;
|
||||||
sframes_t _last_write_end;
|
sframes_t _last_write_end;
|
||||||
|
|
||||||
private:
|
|
||||||
bool file_changed (std::string path);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -900,22 +900,6 @@ AudioSource::truncate_peakfile ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
AudioSource::file_changed (ustring path)
|
|
||||||
{
|
|
||||||
struct stat stat_file;
|
|
||||||
struct stat stat_peak;
|
|
||||||
|
|
||||||
int e1 = stat (path.c_str(), &stat_file);
|
|
||||||
int e2 = stat (peak_path(path).c_str(), &stat_peak);
|
|
||||||
|
|
||||||
if (!e1 && !e2 && stat_file.st_mtime > stat_peak.st_mtime){
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nframes_t
|
nframes_t
|
||||||
AudioSource::available_peaks (double zoom_factor) const
|
AudioSource::available_peaks (double zoom_factor) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -192,16 +192,6 @@ MidiSource::midi_write (MidiRingBuffer<nframes_t>& source, sframes_t source_star
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
MidiSource::file_changed (string path)
|
|
||||||
{
|
|
||||||
struct stat stat_file;
|
|
||||||
|
|
||||||
int e1 = stat (path.c_str(), &stat_file);
|
|
||||||
|
|
||||||
return !e1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MidiSource::mark_streaming_midi_write_started (NoteMode mode, sframes_t start_frame)
|
MidiSource::mark_streaming_midi_write_started (NoteMode mode, sframes_t start_frame)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue