Eliminate some unused variables

Originally committed to SVN as r5893.
This commit is contained in:
Thomas Goyne 2011-11-19 04:46:45 +00:00
parent 236ea4261d
commit 9a53dc0440
3 changed files with 2 additions and 9 deletions

View File

@ -187,7 +187,6 @@ void OpenALPlayer::Stop(bool timerToo)
void OpenALPlayer::FillBuffers(ALsizei count)
{
// Do the actual filling/queueing
ALuint bufid = buf_first_free;
for (count = mid(1, count, buffers_free); count > 0; --count) {
ALsizei fill_len = mid<ALsizei>(0, decode_buffer.size() / bpf, end_frame - cur_frame);

View File

@ -54,20 +54,16 @@
namespace CharSetDetect {
wxString GetEncoding(wxString const& filename) {
bool unknown = 0;
agi::charset::CharsetListDetected list;
agi::charset::CharsetListDetected::const_iterator i_lst;
try {
agi::charset::DetectAll(STD_STR(filename), list);
} catch (const agi::charset::UnknownCharset&) {
unknown = 1;
/// @todo If the charset is unknown we need to display a complete list of character sets.
}
/// @todo If the charset is unknown we need to display a complete list of character sets.
if (list.size() > 1) {
// Get choice from user
wxArrayString choices;

View File

@ -167,7 +167,7 @@ void SubtitlesGrid::InsertLine(AssDialogue *line,int n,bool after,bool update) {
entryIter pos = std::find(context->ass->Line.begin(), context->ass->Line.end(), rel_line);
if (after) ++pos;
entryIter newIter = context->ass->Line.insert(pos,line);
context->ass->Line.insert(pos,line);
// Update
if (update) {
@ -305,7 +305,6 @@ void SubtitlesGrid::PasteLines(int n,bool pasteOver) {
void SubtitlesGrid::DeleteLines(wxArrayInt target, bool flagModified) {
entryIter before_first = std::find_if(context->ass->Line.begin(), context->ass->Line.end(), cast<AssDialogue*>()); --before_first;
int old_active_line_index = GetDialogueIndex(GetActiveLine());
int row = -1;
int deleted = 0;
@ -325,7 +324,6 @@ void SubtitlesGrid::DeleteLines(wxArrayInt target, bool flagModified) {
AssDialogue *def = new AssDialogue;
++before_first;
context->ass->Line.insert(before_first, def);
old_active_line_index = 0;
}
if (flagModified) {