mirror of https://github.com/odrling/Aegisub
Remove unreachable assert
This commit is contained in:
parent
6028c7f6cb
commit
809b789b61
|
@ -184,7 +184,6 @@ void tagless_find_helper::map_range(size_t &s, size_t &e) {
|
|||
continue;
|
||||
}
|
||||
|
||||
assert(block.first > s);
|
||||
// Blocks after the match are irrelevant
|
||||
if (block.first >= e) break;
|
||||
|
||||
|
|
|
@ -219,7 +219,6 @@ void AudioSpectrumRenderer::Render(wxBitmap &bmp, int start, AudioRenderingStyle
|
|||
int end = start + bmp.GetWidth();
|
||||
|
||||
assert(start >= 0);
|
||||
assert(end >= 0);
|
||||
assert(end >= start);
|
||||
|
||||
// Prepare an image buffer to write
|
||||
|
|
|
@ -376,7 +376,6 @@ namespace Automation4 {
|
|||
return error(L, "Attempt to index a Subtitle File object with value of type '%s'.", lua_typename(L, lua_type(L, 2)));
|
||||
}
|
||||
|
||||
assert(false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -246,7 +246,8 @@ struct parsed_line {
|
|||
shift += 2;
|
||||
blocks = line->ParseTags();
|
||||
}
|
||||
else if (ovr) {
|
||||
else {
|
||||
// We've reached here, ovr cannot be null
|
||||
std::string alt;
|
||||
if (tag == "\\c") alt = "\\1c";
|
||||
// Remove old of same
|
||||
|
@ -270,8 +271,6 @@ struct parsed_line {
|
|||
|
||||
line->UpdateText(blocks);
|
||||
}
|
||||
else
|
||||
assert(false);
|
||||
|
||||
return shift;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue