clang-tidy: Apply modernize-use-bool-literals (#6448)
... and remove never-executed code: This removes a condition that was always true and two statements guarded by conditions that were always false.
This commit is contained in:
@@ -388,9 +388,7 @@ AmpV::one_cycle (int frames)
|
||||
v = v * v * .06 + .46;
|
||||
|
||||
a = filter[0].process (a + normal);
|
||||
if (0)
|
||||
a = filter[2].process (a);
|
||||
|
||||
|
||||
a = g * (a + supply * .001);
|
||||
|
||||
a = v * tube.transfer_clip (up.upsample (a));
|
||||
@@ -399,8 +397,7 @@ AmpV::one_cycle (int frames)
|
||||
a = down.process (a);
|
||||
|
||||
a = filter[1].process (a - normal);
|
||||
if (1)
|
||||
a = filter[2].process (a + normal);
|
||||
a = filter[2].process (a + normal);
|
||||
|
||||
{
|
||||
for (int o = 1; o < OVERSAMPLE; ++o)
|
||||
|
||||
@@ -154,9 +154,6 @@ class DelayTapA
|
||||
int n;
|
||||
fistp (f, n); /* read: n = (int) f; relies on FPTruncateMode */
|
||||
f -= n;
|
||||
if (0 && f < .5)
|
||||
f += 1,
|
||||
n -= 1;
|
||||
|
||||
sample_t x = d[n];
|
||||
f = (1 - f) / (1 + f);
|
||||
|
||||
@@ -605,7 +605,7 @@ invalid_format:
|
||||
}
|
||||
|
||||
// search for "data" chunk
|
||||
while( 1 )
|
||||
while( true )
|
||||
{
|
||||
const int id = readID();
|
||||
const int len = read32LE();
|
||||
|
||||
@@ -86,7 +86,7 @@ LocalZynAddSubFx::LocalZynAddSubFx() :
|
||||
m_ioEngine = new NulEngine;
|
||||
|
||||
m_master = new Master();
|
||||
m_master->swaplr = 0;
|
||||
m_master->swaplr = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ QString AudioOss::probeDevice()
|
||||
if( QFileInfo( dev ).isWritable() == false )
|
||||
{
|
||||
int instance = -1;
|
||||
while( 1 )
|
||||
while( true )
|
||||
{
|
||||
dev = PATH_DEV_DSP + QString::number( ++instance );
|
||||
if( !QFileInfo( dev ).exists() )
|
||||
|
||||
Reference in New Issue
Block a user