Removed useless default:break
This commit is contained in:
1 parent
7469e86617
commit
71d5b2ce76
10 files changed
-42
No files matched your search
@@ -1540,8 +1540,6 @@ yyGrowStack(pParser);
|
|||||||
sqlite3IdListDelete( pParse.db, ref ( yypminor.yy90 ).b );
|
sqlite3IdListDelete( pParse.db, ref ( yypminor.yy90 ).b );
|
||||||
//#line 1473 "parse.c"
|
//#line 1473 "parse.c"
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break; /* If no destructor action specified: do nothing */
|
break; /* If no destructor action specified: do nothing */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -328,8 +328,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Screen.DataToScreen(ToScreenMain);
|
Screen.DataToScreen(ToScreenMain);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Screen;
|
return Screen;
|
||||||
|
|||||||
@@ -333,8 +333,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Screen.DataToScreen(ToScreenMain);
|
Screen.DataToScreen(ToScreenMain);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Screen;
|
return Screen;
|
||||||
|
|||||||
@@ -408,8 +408,6 @@ namespace Vocaluxe.PartyModes
|
|||||||
Screen.DataToScreen(ToScreenMain);
|
Screen.DataToScreen(ToScreenMain);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Screen;
|
return Screen;
|
||||||
|
|||||||
@@ -165,8 +165,6 @@ namespace Vocaluxe.Base
|
|||||||
case ESounds.T440:
|
case ESounds.T440:
|
||||||
file = Path.Combine(file, CSettings.sSoundT440);
|
file = Path.Combine(file, CSettings.sSoundT440);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.Length == 0)
|
if (file.Length == 0)
|
||||||
|
|||||||
@@ -91,8 +91,6 @@ namespace Vocaluxe.Screens
|
|||||||
SelectSlides[SelectSlideProfiles].RenameValue(
|
SelectSlides[SelectSlideProfiles].RenameValue(
|
||||||
CProfiles.AddGetPlayerName(SelectSlides[SelectSlideProfiles].Selection, KeyEvent.Unicode));
|
CProfiles.AddGetPlayerName(SelectSlides[SelectSlideProfiles].Selection, KeyEvent.Unicode));
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1487,8 +1487,6 @@ namespace Vocaluxe.Menu
|
|||||||
case Keys.Right:
|
case Keys.Right:
|
||||||
actualRect = new SRectF(0, actualRect.Y, 1, 1, actualRect.Z);
|
actualRect = new SRectF(0, actualRect.Y, 1, 1, actualRect.Z);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < _Interactions.Count; i++)
|
for (int i = 0; i < _Interactions.Count; i++)
|
||||||
@@ -1539,8 +1537,6 @@ namespace Vocaluxe.Menu
|
|||||||
inDirection = true;
|
inDirection = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (!inDirection)
|
if (!inDirection)
|
||||||
return float.MaxValue;
|
return float.MaxValue;
|
||||||
@@ -1578,8 +1574,6 @@ namespace Vocaluxe.Menu
|
|||||||
inDirection = true;
|
inDirection = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (!inDirection)
|
if (!inDirection)
|
||||||
return float.MaxValue;
|
return float.MaxValue;
|
||||||
|
|||||||
@@ -748,8 +748,6 @@ namespace Vocaluxe.Menu
|
|||||||
case Keys.Right:
|
case Keys.Right:
|
||||||
actualRect = new SRectF(0, actualRect.Y, 1, 1, actualRect.Z);
|
actualRect = new SRectF(0, actualRect.Y, 1, 1, actualRect.Z);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < _Interactions.Count; i++)
|
for (int i = 0; i < _Interactions.Count; i++)
|
||||||
@@ -800,8 +798,6 @@ namespace Vocaluxe.Menu
|
|||||||
inDirection = true;
|
inDirection = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (!inDirection)
|
if (!inDirection)
|
||||||
return float.MaxValue;
|
return float.MaxValue;
|
||||||
@@ -839,8 +835,6 @@ namespace Vocaluxe.Menu
|
|||||||
inDirection = true;
|
inDirection = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (!inDirection)
|
if (!inDirection)
|
||||||
return float.MaxValue;
|
return float.MaxValue;
|
||||||
|
|||||||
@@ -177,8 +177,6 @@ namespace Vocaluxe.Menu
|
|||||||
_Alpha = 1f - _Age / _MaxAge;
|
_Alpha = 1f - _Age / _MaxAge;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -223,8 +221,6 @@ namespace Vocaluxe.Menu
|
|||||||
Y += _Vy * timediff;
|
Y += _Vy * timediff;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -254,8 +250,6 @@ namespace Vocaluxe.Menu
|
|||||||
size = _Size * (1f - CurrentTime / _Vsize);
|
size = _Size * (1f - CurrentTime / _Vsize);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_Rect.X += (_Rect.W - size) / 2f;
|
_Rect.X += (_Rect.W - size) / 2f;
|
||||||
@@ -530,8 +524,6 @@ namespace Vocaluxe.Menu
|
|||||||
vsize = lifetime * 2f;
|
vsize = lifetime * 2f;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int w = (int)(Rect.W - size / 4f);
|
int w = (int)(Rect.W - size / 4f);
|
||||||
|
|||||||
@@ -648,8 +648,6 @@ namespace Vocaluxe.Menu
|
|||||||
case EHAlignment.Bottom:
|
case EHAlignment.Bottom:
|
||||||
sFactor = (Height - _DrawPosition.tH) * 0.5f;
|
sFactor = (Height - _DrawPosition.tH) * 0.5f;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
CBase.Fonts.DrawTextReflection(_Text, _DrawPosition.tH, _DrawPosition.X, _DrawPosition.Y, Z, color, ReflectionSpace + sFactor, ReflectionHeight);
|
CBase.Fonts.DrawTextReflection(_Text, _DrawPosition.tH, _DrawPosition.X, _DrawPosition.Y, Z, color, ReflectionSpace + sFactor, ReflectionHeight);
|
||||||
}
|
}
|
||||||
@@ -676,8 +674,6 @@ namespace Vocaluxe.Menu
|
|||||||
case EAlignment.Right:
|
case EAlignment.Right:
|
||||||
x = X - bounds.Width;
|
x = X - bounds.Width;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SColorF CurrentColor = new SColorF(Color);
|
SColorF CurrentColor = new SColorF(Color);
|
||||||
@@ -743,8 +739,6 @@ namespace Vocaluxe.Menu
|
|||||||
case EHAlignment.Bottom:
|
case EHAlignment.Bottom:
|
||||||
y += step * 0.75f;
|
y += step * 0.75f;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bounds = CBase.Fonts.GetTextBounds(this, h);
|
bounds = CBase.Fonts.GetTextBounds(this, h);
|
||||||
@@ -758,8 +752,6 @@ namespace Vocaluxe.Menu
|
|||||||
case EAlignment.Right:
|
case EAlignment.Right:
|
||||||
x = x - bounds.Width;
|
x = x - bounds.Width;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -850,8 +842,6 @@ namespace Vocaluxe.Menu
|
|||||||
case EHAlignment.Bottom:
|
case EHAlignment.Bottom:
|
||||||
y += step * 0.75f;
|
y += step * 0.75f;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bounds = CBase.Fonts.GetTextBounds(this, h);
|
bounds = CBase.Fonts.GetTextBounds(this, h);
|
||||||
|
|||||||
Reference in new issue
Block a user