[vlmc-devel] commit: Library: Removing commented code. (Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Sat Mar 13 12:59:39 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Mar 13 12:58:01 2010 +0100| [31cb8f601b0797a0d92a4f3c5882fbd708c1b92c] | committer: Hugo Beauzee-Luyssen
Library: Removing commented code.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=31cb8f601b0797a0d92a4f3c5882fbd708c1b92c
---
src/Library/Library.cpp | 84 -----------------------------------------------
1 files changed, 0 insertions(+), 84 deletions(-)
diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index 03f525a..67bab16 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -61,90 +61,6 @@ Library::loadProject( const QDomElement& doc )
if ( clips.isNull() == true )
return ;
load( clips, this );
-
-// if ( medias.isNull() == true || medias.tagName() != "medias" )
-// {
-// qWarning() << "Invalid medias node";
-// return ;
-// }
-//
-// QDomElement elem = medias.firstChild().toElement();
-// while ( elem.isNull() == false )
-// {
-// QList<QDomElement> clipList;
-// QDomElement mediaProperty = elem.firstChild().toElement();
-// QString path;
-// QString uuid;
-//
-// while ( mediaProperty.isNull() == false )
-// {
-// QString tagName = mediaProperty.tagName();
-// if ( tagName == "path" )
-// path = mediaProperty.text();
-// else if ( tagName == "uuid" )
-// uuid = mediaProperty.text();
-// else if ( tagName == "clips" )
-// {
-// QDomElement clip = mediaProperty.firstChild().toElement();
-// while ( clip.isNull() == false )
-// {
-// clipList.push_back( clip );
-// clip = clip.nextSibling().toElement();
-// }
-// }
-// else
-// qWarning() << "Unknown field" << tagName;
-// mediaProperty = mediaProperty.nextSibling().toElement();
-// }
-// //FIXME: This is verry redondant...
-// if ( mediaAlreadyLoaded( path ) == true )
-// {
-// QHash<QUuid, Clip*>::iterator it = m_clips.begin();
-// QHash<QUuid, Clip*>::iterator end = m_clips.end();
-//
-// for ( ; it != end; ++it )
-// {
-// if ( it.value()->getMedia()->fileInfo()->absoluteFilePath() == path )
-// {
-// Clip* clip = it.value();
-// clip->setUuid( QUuid( uuid ) );
-// m_clips.erase( it );
-// m_clips[clip->uuid()] = clip;
-// break ;
-// }
-// }
-// }
-// else
-// {
-// if ( addMedia( path, uuid ) == false )
-// {
-// elem = elem.nextSibling().toElement();
-// continue ;
-// }
-// }
-// if ( clipList.size() != 0 )
-// {
-// foreach( QDomElement clip, clipList )
-// {
-// QString parentUuid = clip.attribute( "parentUuid", "");
-// if ( parentUuid != "" && parentUuid == uuid )
-// {
-// QString beg = clip.attribute( "begin", "" );
-// QString end = clip.attribute( "end", "" );
-// QString clipUuid = clip.attribute( "uuid", "" );
-// if ( beg != "" && end != "" && uuid != "" )
-// {
-// if ( m_clips.contains( uuid ) == false )
-// continue ;
-// Clip* parentClip = m_clips[QUuid( uuid )];
-// Clip* clip = new Clip( parentClip, beg.toInt(), end.toInt(), QUuid( clipUuid ) );
-// parentClip->addSubclip( clip );
-// }
-// }
-// }
-// }
-// elem = elem.nextSibling().toElement();
-// }
emit projectLoaded();
}
More information about the Vlmc-devel
mailing list