- return *i;
-}
-
-
-/** @param s A sound processor from our static list.
- * @return Index of the sound processor with the list, or -1.
- */
-int
-CinemaSoundProcessor::as_index (CinemaSoundProcessor const * s)
-{
- vector<CinemaSoundProcessor*>::size_type i = 0;
- while (i < _cinema_sound_processors.size() && _cinema_sound_processors[i] != s) {
- ++i;
- }
-
- if (i == _cinema_sound_processors.size ()) {
- return -1;
- }
-
- return i;