Skip to content

Commit

Permalink
Merge pull request xbmc#5021 from mkortstiege/unused
Browse files Browse the repository at this point in the history
[cosmetics] removed unused variables and code
  • Loading branch information
mkortstiege committed Aug 5, 2014
2 parents bb86c12 + 8481b59 commit a84e2bf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,6 @@ bool CLinuxRendererGL::UploadVDPAUTexture(int index)
#ifdef HAVE_LIBVDPAU
VDPAU::CVdpauRenderPicture *vdpau = m_buffers[index].vdpau;

YV12Image &im = m_buffers[index].image;
YUVFIELDS &fields = m_buffers[index].fields;
YUVPLANE &plane = fields[FIELD_FULL][0];

Expand Down
12 changes: 0 additions & 12 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,17 +435,6 @@ VdpVideoSurface CVideoSurfaces::GetFree(VdpVideoSurface surf)
return VDP_INVALID_HANDLE;
}

VdpVideoSurface CVideoSurfaces::GetAtIndex(int idx)
{
if (idx >= m_state.size())
return VDP_INVALID_HANDLE;

std::map<VdpVideoSurface, int>::iterator it = m_state.begin();
for(int i = 0; i < idx; i++)
++it;
return it->first;
}

VdpVideoSurface CVideoSurfaces::RemoveNext(bool skiprender)
{
CSingleLock lock(m_section);
Expand Down Expand Up @@ -999,7 +988,6 @@ void CDecoder::FFReleaseBuffer(void *opaque, uint8_t *data)
CDecoder *vdp = (CDecoder*)((CDVDVideoCodecFFmpeg*)opaque)->GetHardware();

VdpVideoSurface surf;
unsigned int i;

CSingleLock lock(vdp->m_DecoderSection);

Expand Down
1 change: 0 additions & 1 deletion xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.h
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ class CVideoSurfaces
void ClearRender(VdpVideoSurface surf);
bool IsValid(VdpVideoSurface surf);
VdpVideoSurface GetFree(VdpVideoSurface surf);
VdpVideoSurface GetAtIndex(int idx);
VdpVideoSurface RemoveNext(bool skiprender = false);
void Reset();
int Size();
Expand Down

0 comments on commit a84e2bf

Please sign in to comment.