Skip to content

Commit

Permalink
[PVR] cleanup: Remove unused member function CPVRRecordings::GetRecor…
Browse files Browse the repository at this point in the history
…dings
  • Loading branch information
ksooo committed Mar 10, 2016
1 parent 464d182 commit 2685ac9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions xbmc/pvr/recordings/PVRRecordings.cpp
Expand Up @@ -195,24 +195,6 @@ bool CPVRRecordings::HasDeletedRadioRecordings() const
return m_bHasDeletedRadio;
}

int CPVRRecordings::GetRecordings(CFileItemList* results, bool bDeleted) // @@@ TODO radio?
{
CSingleLock lock(m_critSection);

int iRecCount = 0;
for (PVR_RECORDINGMAP_CITR it = m_recordings.begin(); it != m_recordings.end(); it++)
{
if (it->second->IsDeleted() != bDeleted)
continue;

CFileItemPtr pFileItem(new CFileItem(it->second));
results->Add(pFileItem);
iRecCount++;
}

return iRecCount;
}

bool CPVRRecordings::Delete(const CFileItem& item)
{
return item.m_bIsFolder ? DeleteDirectory(item) : DeleteRecording(item);
Expand Down
1 change: 0 additions & 1 deletion xbmc/pvr/recordings/PVRRecordings.h
Expand Up @@ -79,7 +79,6 @@ namespace PVR
bool HasDeletedTVRecordings() const;
int GetNumRadioRecordings() const;
bool HasDeletedRadioRecordings() const;
int GetRecordings(CFileItemList* results, bool bDeleted = false);

/**
* Deletes the item in question, be it a directory or a file
Expand Down

0 comments on commit 2685ac9

Please sign in to comment.