Author: mlandres
Date: Wed Jul 16 18:59:52 2008
New Revision: 10598
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10598&view=rev
Log:
cleanup unused code
Modified:
trunk/libzypp/zypp/RepoManager.cc
trunk/libzypp/zypp/data/ResolvableData.cc
trunk/libzypp/zypp/data/ResolvableData.h
trunk/libzypp/zypp/data/ResolvableDataConsumer.h
Modified: trunk/libzypp/zypp/RepoManager.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=10598&r1=10597&r2=10598&view=diff
==============================================================================
--- trunk/libzypp/zypp/RepoManager.cc (original)
+++ trunk/libzypp/zypp/RepoManager.cc Wed Jul 16 18:59:52 2008
@@ -848,38 +848,10 @@
ZYPP_THROW(RepoUnknownTypeException("Unhandled repository type"));
break;
}
-#if 0
- switch ( repokind.toEnum() )
- {
- case RepoType::RPMMD_e :
- if (0)
- {
- CombinedProgressData subprogrcv( progress, 100);
- parser::yum::RepoParser parser(id, store, parser::yum::RepoParserOpts(), subprogrcv);
- parser.parse(rawpath);
- // no error
- }
- break;
- case RepoType::YAST2_e :
- if (0)
- {
- CombinedProgressData subprogrcv( progress, 100);
- parser::susetags::RepoParser parser(id, store, subprogrcv);
- parser.parse(rawpath);
- // no error
- }
- break;
-
- default:
- ZYPP_THROW(RepoUnknownTypeException());
- }
-#endif
// update timestamp and checksum
- //store.updateRepositoryStatus(id, raw_metadata_status);
setCacheStatus(info, raw_metadata_status);
MIL << "Commit cache.." << endl;
- //store.commit();
- //progress.toMax();
+ progress.toMax();
}
////////////////////////////////////////////////////////////////////////////
Modified: trunk/libzypp/zypp/data/ResolvableData.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/data/ResolvableData.cc?rev=10598&r1=10597&r2=10598&view=diff
==============================================================================
--- trunk/libzypp/zypp/data/ResolvableData.cc (original)
+++ trunk/libzypp/zypp/data/ResolvableData.cc Wed Jul 16 18:59:52 2008
@@ -19,9 +19,6 @@
IMPL_PTR_TYPE(Resolvable);
IMPL_PTR_TYPE(ResObject);
-IMPL_PTR_TYPE(Script);
-IMPL_PTR_TYPE(Message);
-IMPL_PTR_TYPE(Atom);
IMPL_PTR_TYPE(Patch);
IMPL_PTR_TYPE(Pattern);
IMPL_PTR_TYPE(Product);
@@ -30,8 +27,6 @@
IMPL_PTR_TYPE(SrcPackage);
IMPL_PTR_TYPE(DeltaRpm);
-IMPL_PTR_TYPE(PatchRpm);
-IMPL_PTR_TYPE(PackageAtom);
IMPL_PTR_TYPE(BaseVersion);
Modified: trunk/libzypp/zypp/data/ResolvableData.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/data/ResolvableData.h?rev=10598&r1=10597&r2=10598&view=diff
==============================================================================
--- trunk/libzypp/zypp/data/ResolvableData.h (original)
+++ trunk/libzypp/zypp/data/ResolvableData.h Wed Jul 16 18:59:52 2008
@@ -118,55 +118,6 @@
///////////////////////////////////////////////////////////////////
- DEFINE_PTR_TYPE(Atom);
-
- /* Data Object for Atom resolvable. */
- class Atom : public ResObject
- {
- public:
- Atom()
- {};
- };
-
- ///////////////////////////////////////////////////////////////////
-
- DEFINE_PTR_TYPE(Script);
-
- /* Data Object for Script resolvable. */
- class Script : public ResObject
- {
- public:
- Script()
- {};
-
- /** Inlined doScript. */
- std::string doScript;
- /** Location of doScript on the repositories media. */
- OnMediaLocation doScriptLocation;
-
- /** Inlined undoScript. */
- std::string undoScript;
- /** Location of undoScript on the repositories media. */
- OnMediaLocation undoScriptLocation;
- };
-
- ///////////////////////////////////////////////////////////////////
-
- DEFINE_PTR_TYPE(Message);
-
- /* Data Object for Message resolvable. */
- class Message : public ResObject
- {
- public:
- Message()
- {};
-
- /** Inlined Text. */
- TranslatedText text;
- };
-
- ///////////////////////////////////////////////////////////////////
-
DEFINE_PTR_TYPE(Patch);
/* Data Object for Patch resolvable. */
@@ -374,13 +325,6 @@
virtual std::ostream & dumpOn( std::ostream & str ) const;
};
- DEFINE_PTR_TYPE(PatchRpm);
- /** Patch RPM data object */
- struct PatchRpm : RpmBase
- {
- std::set