Changeset 60327d5d5fe30448ed879392a1d61926977b52b0
- Timestamp:
- 11/03/07 13:07:47
(10 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1194091667 +0000
- git-parent:
[8678d297cc21c96233df5e06aff61b3c4d3b4f9d]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1194091667 +0000
- Message:
control/flat_media_list_view.c: Remove some dead code. (Reported by jb).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ra83d27a |
r60327d5 |
|
| 43 | 43 | * Private functions |
|---|
| 44 | 44 | */ |
|---|
| 45 | | static void add_item( libvlc_media_list_view_t * p_mlv, libvlc_media_descriptor_t * p_md ); |
|---|
| 46 | | static void remove_item( libvlc_media_list_view_t * p_mlv, libvlc_media_descriptor_t * p_md ); |
|---|
| 47 | 45 | static void flat_media_list_view_release( libvlc_media_list_view_t * p_mlv ); |
|---|
| 48 | 46 | |
|---|
| 49 | | |
|---|
| 50 | | /************************************************************************** |
|---|
| 51 | | * add_item (private) |
|---|
| 52 | | **************************************************************************/ |
|---|
| 53 | | static void |
|---|
| 54 | | add_item( libvlc_media_list_view_t * p_mlv, libvlc_media_descriptor_t * p_md ) |
|---|
| 55 | | { |
|---|
| 56 | | trace( "p_md '%s'\n", p_md->p_input_item->psz_name ); |
|---|
| 57 | | libvlc_media_descriptor_retain( p_md ); |
|---|
| 58 | | vlc_array_append( &p_mlv->p_this_view_data->array, p_md ); |
|---|
| 59 | | } |
|---|
| 60 | | |
|---|
| 61 | | /************************************************************************** |
|---|
| 62 | | * remove_item (private) |
|---|
| 63 | | **************************************************************************/ |
|---|
| 64 | | static void |
|---|
| 65 | | remove_item( libvlc_media_list_view_t * p_mlv, libvlc_media_descriptor_t * p_md ) |
|---|
| 66 | | { |
|---|
| 67 | | trace( "p_md '%s'\n", p_md->p_input_item->psz_name ); |
|---|
| 68 | | int index = libvlc_media_list_index_of_item( p_mlv, p_md, NULL ); |
|---|
| 69 | | if( index < 0 ) |
|---|
| 70 | | return; |
|---|
| 71 | | |
|---|
| 72 | | libvlc_media_descriptor_release( p_md ); |
|---|
| 73 | | vlc_array_remove( &p_mlv->p_this_view_data->array, index ); |
|---|
| 74 | | } |
|---|
| 75 | 47 | |
|---|
| 76 | 48 | /************************************************************************** |
|---|