Commit 21d85b54 authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

if loops not necessary anymore because max index already present in `end` vector

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4660
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent f9734c21
......@@ -405,12 +405,6 @@ int main(int iargc, char* argv[])
{
TFXX_assert(0 < opt.durationsamples,
"ERROR: Timeseries of zero length ('--samplesd').");
cout << "nsamples: " << nsamples << endl;
if (opt.durationsamples >= wid2.nsamples ||
opt.durationsamples > nsamples)
{
opt.durationsamples = wid2.nsamples;
}
end.push_back(start_sample+opt.durationsamples-1);
}
if (0 <= opt.lastsamples)
......@@ -424,10 +418,6 @@ int main(int iargc, char* argv[])
if (0 < opt.durationseconds)
{
int s = static_cast<int>(opt.durationseconds/wid2.dt);
if (s >= wid2.nsamples || s > nsamples)
{
s = wid2.nsamples;
}
end.push_back(start_sample+s-1);
}
if (0 < opt.lastseconds)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment