Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
e7699bc1
Commit
e7699bc1
authored
Sep 02, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some useless code
parent
4ab4e13b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
25 deletions
+3
-25
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+3
-25
No files found.
modules/gui/macosx/playlist.m
View file @
e7699bc1
...
...
@@ -1664,31 +1664,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
else
p_new_parent
=
[
item
pointerValue
];
/* If the proposed parent is not a node, then use the parent node of
this item. */
if
(
p_new_parent
->
i_children
<=
0
)
{
int
j
;
playlist_item_t
*
p_temp_item
=
p_new_parent
;
p_new_parent
=
[
self
parentOfItem
:
p_new_parent
];
if
(
!
p_new_parent
)
{
vlc_object_release
(
p_playlist
);
return
NO
;
}
/* Calculate the position of the dropped item in this new parent:
following the first proposed parent. */
for
(
j
=
0
;
j
<
p_new_parent
->
i_children
;
j
++
)
{
if
(
p_new_parent
->
pp_children
[
j
]
==
p_temp_item
)
{
index
=
j
;
break
;
}
else
if
(
j
==
p_new_parent
->
i_children
-
1
)
index
=
-
1
;
}
}
/* Make sure the proposed parent is a node.
(This should never be true) */
if
(
p_new_parent
->
i_children
<
0
)
return
NO
;
for
(
i
=
0
;
i
<
[
o_all_items
count
];
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment