[solang] Removed the Engine::import methods



commit c7938f3f37e82a949199e7cd53d6742f4632a3f9
Author: Debarshi Ray <rishi gnu org>
Date:   Thu Mar 4 16:30:23 2010 +0200

    Removed the Engine::import methods
    
    Those are unlikely to be needed in future. Atleast not in their
    present form.

 src/application/engine.cpp |  111 --------------------------------------------
 src/application/engine.h   |   37 ---------------
 2 files changed, 0 insertions(+), 148 deletions(-)
---
diff --git a/src/application/engine.cpp b/src/application/engine.cpp
index 441b8de..aa9f788 100644
--- a/src/application/engine.cpp
+++ b/src/application/engine.cpp
@@ -76,117 +76,6 @@ Engine::criteria_changed() throw()
     criteriaChanged_.emit(criteria);
 }
 
-/* void */
-/* Engine::import(const PhotoPtr & photo, */
-/*                const IPhotoSourcePtr & source, */
-/*                const IStoragePtr & selected_storage, */
-/*                const TagList & tags) throw() */
-/* { */
-/*     import(photo, source, selected_storage, tags, observer_); */
-/*     return; */
-/* } */
-
-/* void */
-/* Engine::import(const PhotoPtr & photo, */
-/*                const IPhotoSourcePtr & source, */
-/*                const IStoragePtr & selected_storage, */
-/*                const TagList & tags, */
-/*                const ProgressObserverPtr & observer) throw() */
-/* { */
-/*     photoImportBegin_.emit(); */
-/* #if 0 */
-/*     for (TagList::const_iterator it = tags.begin(); */
-/*          it != tags.end(); it++) */
-/*     { */
-/*         (*it)->save(database_); */
-/*     } */
-/* #endif */
-/*     PhotoPtr imp_photo = source->import(photo, selected_storage, */
-/*                                     tags, database_, observer); */
-/*     photoImportEnd_.emit(); */
-
-/*     PhotoList imp_photos; */
-/*     imp_photos.push_back(imp_photo); */
-/*     { */
-/*         Glib::Mutex::Lock lock(mutex_); */
-/*         photos_ = imp_photos; */
-/*     } */
-
-/*     return; */
-/* } */
-
-/* void */
-/* Engine::import(const PhotoList & photos, */
-/*                const IPhotoSourcePtr & source, */
-/*                const IStoragePtr & selected_storage, */
-/*                const TagList & tags) throw() */
-/* { */
-/*     import(photos, source, selected_storage, tags, observer_); */
-/*     return; */
-/* } */
-
-/* void */
-/* Engine::import(const PhotoList & photos, */
-/*                const IPhotoSourcePtr & source, */
-/*                const IStoragePtr & selected_storage, */
-/*                const TagList & tags, */
-/*                const ProgressObserverPtr & observer) throw() */
-/* { */
-/*     photoImportBegin_.emit(); */
-/* #if 0 */
-/*     for (TagList::const_iterator it = tags.begin(); */
-/*          it != tags.end(); it++) */
-/*     { */
-/*         (*it)->save(database_); */
-/*     } */
-/* #endif */
-/*     PhotoList imp_photos = source->import(photos, selected_storage, */
-/*                                           tags, database_, observer); */
-/*     photoImportEnd_.emit(); */
-
-/*     { */
-/*         Glib::Mutex::Lock lock(mutex_); */
-/*         photos_ = imp_photos; */
-/*     } */
-
-/*     return; */
-/* } */
-
-/* void */
-/* Engine::import(const IPhotoSourcePtr & source, */
-/*                const IStoragePtr & selected_storage, */
-/*                const TagList & tags) throw() */
-/* { */
-/*     import(source, selected_storage, tags, observer_); */
-/*     return; */
-/* } */
-
-/* void */
-/* Engine::import(const IPhotoSourcePtr & source, */
-/*                const IStoragePtr & selected_storage, */
-/*                const TagList & tags, */
-/*                const ProgressObserverPtr & observer) throw() */
-/* { */
-/*     photoImportBegin_.emit(); */
-/* #if 0 */
-/*     for (TagList::const_iterator it = tags.begin(); */
-/*          it != tags.end(); it++) */
-/*     { */
-/*         (*it)->save(database_); */
-/*     } */
-/* #endif */
-/*     PhotoList imp_photos = source->import(selected_storage, tags, */
-/*                                           database_, observer); */
-/*     photoImportEnd_.emit(); */
-
-/*     { */
-/*         Glib::Mutex::Lock lock(mutex_); */
-/*         photos_ = imp_photos; */
-/*     } */
-
-/*     return; */
-/* } */
-
 void
 Engine::search_async(const IPhotoSearchCriteriaList & criteria,
                      const Database::SlotAsyncPhotos & slot) const
diff --git a/src/application/engine.h b/src/application/engine.h
index 69b4f15..21ec0c2 100644
--- a/src/application/engine.h
+++ b/src/application/engine.h
@@ -56,43 +56,6 @@ class Engine :
         void
         criteria_changed() throw();
 
-        /* void */
-        /* import(const PhotoPtr & photo, */
-        /*        const IPhotoSourcePtr & source, */
-        /*        const IStoragePtr & selected_storage, */
-        /*        const TagList & tags) throw(); */
-
-        /* void */
-        /* import(const PhotoPtr & photo, */
-        /*        const IPhotoSourcePtr & source, */
-        /*        const IStoragePtr & selected_storage, */
-        /*        const TagList & tags, */
-        /*        const ProgressObserverPtr & observer) throw(); */
-
-        /* void */
-        /* import(const PhotoList & photos, */
-        /*        const IPhotoSourcePtr & source,  */
-        /*        const IStoragePtr & selected_storage, */
-        /*        const TagList & tags) throw(); */
-
-        /* void */
-        /* import(const PhotoList & photos, */
-        /*        const IPhotoSourcePtr & source,  */
-        /*        const IStoragePtr & selected_storage, */
-        /*        const TagList & tags, */
-        /*        const ProgressObserverPtr & observer) throw(); */
-
-        /* void */
-        /* import(const IPhotoSourcePtr & source, */
-        /*        const IStoragePtr & selected_storage, */
-        /*        const TagList & tags) throw(); */
-
-        /* void */
-        /* import(const IPhotoSourcePtr & source, */
-        /*        const IStoragePtr & selected_storage, */
-        /*        const TagList & tags, */
-        /*        const ProgressObserverPtr & observer) throw(); */
-
         void
         search_async(const IPhotoSearchCriteriaList & criteria,
                      const Database::SlotAsyncPhotos & slot) const



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]