From b85442ba775a54464772af9f2f653e4aba2caae6 Mon Sep 17 00:00:00 2001 From: John Glover Date: Tue, 11 Sep 2012 16:09:31 +0200 Subject: [base] Clean up: remove old Partial object. --- src/simpl/base.cpp | 31 ------------------------------- src/simpl/base.h | 25 ------------------------- 2 files changed, 56 deletions(-) (limited to 'src') diff --git a/src/simpl/base.cpp b/src/simpl/base.cpp index f418bf5..ac4d120 100644 --- a/src/simpl/base.cpp +++ b/src/simpl/base.cpp @@ -18,37 +18,6 @@ Peak::~Peak() { } -// --------------------------------------------------------------------------- -// Partial -// --------------------------------------------------------------------------- -Partial::Partial() { - _starting_frame = 0; - _partial_number = -1; -} - -Partial::~Partial() { - _peaks.clear(); -} - -void Partial::add_peak(Peak* peak) { -} - -int Partial::length() { - return _peaks.size(); -} - -int Partial::first_frame_number() { - return _starting_frame; -} - -int Partial::last_frame_number() { - return _starting_frame + length(); -} - -Peak* Partial::peak(int peak_number) { - return _peaks[peak_number]; -} - // --------------------------------------------------------------------------- // Frame // --------------------------------------------------------------------------- diff --git a/src/simpl/base.h b/src/simpl/base.h index 83ab6bd..5a3bf5b 100644 --- a/src/simpl/base.h +++ b/src/simpl/base.h @@ -31,31 +31,6 @@ class Peak { typedef std::vector Peaks; -// --------------------------------------------------------------------------- -// Partial -// -// Represents a sinuoidal partial or track, an ordered sequence of Peaks -// --------------------------------------------------------------------------- -class Partial { - private: - int _starting_frame; - long _partial_number; - Peaks _peaks; - - public: - Partial(); - ~Partial(); - - void add_peak(Peak* peak); - int length(); - int first_frame_number(); - int last_frame_number(); - Peak* peak(int peak_number); -}; - -typedef std::vector Partials; - - // --------------------------------------------------------------------------- // Frame // -- cgit v1.2.3