Author: lslezak Date: Thu Sep 22 16:56:30 2011 New Revision: 65948 URL: http://svn.opensuse.org/viewcvs/yast?rev=65948&view=rev Log: removed obsoleted/unused Pkg::PkgFreshen() function Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Package.cc trunk/pkg-bindings/src/PkgFunctions.h trunk/pkg-bindings/src/Source_Create.cc trunk/pkg-bindings/src/Source_Set.cc Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=65948&r1=65947&r2=65948&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Thu Sep 22 16:56:30 2011 @@ -4,7 +4,8 @@ - use signed type for RepoId, fixes returning 2^32 - 1 instead of -1 on i586 (bnc#718514) - code cleanup - removed obsoleted unused functions: - Pkg::SourceSaveRanks(), Pkg::SourceInstallOrder(), Pkg::You*() + Pkg::SourceSaveRanks(), Pkg::SourceInstallOrder(), Pkg::You*(), + Pkg::PkgFreshen() ------------------------------------------------------------------- Wed Aug 10 13:17:36 UTC 2011 - lslezak@suse.cz Modified: trunk/pkg-bindings/src/Package.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Package.cc?rev=65948&r1=65947&r2=65948&view=diff ============================================================================== --- trunk/pkg-bindings/src/Package.cc (original) +++ trunk/pkg-bindings/src/Package.cc Thu Sep 22 16:56:30 2011 @@ -1940,28 +1940,6 @@ return YCPBoolean(false); } - -/** - @builtin PkgFreshen - @short check all package freshens and schedule matching ones for installation - obsoleted, not needed - @return boolean - - Returns true. (If no pool item 'transacts') - - The pool should NOT have any items set to 'transact' (scheduled for installation - or removal) - If it has, dependencies will be solved and the returned result might be false. - -*/ -#warning Freshens is obsolete -YCPBoolean -PkgFunctions::PkgFreshen() -{ - y2warning("Pkg::PkgFreshen() is obsoleted, it is not needed anymore"); - return YCPBoolean(true); -} - - /** @builtin PkgSolveCheckTargetOnly Modified: trunk/pkg-bindings/src/PkgFunctions.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/PkgFunctions.h?rev=65948&r1=65947&r2=65948&view=diff ============================================================================== --- trunk/pkg-bindings/src/PkgFunctions.h (original) +++ trunk/pkg-bindings/src/PkgFunctions.h Thu Sep 22 16:56:30 2011 @@ -703,8 +703,6 @@ /* TYPEINFO: boolean()*/ YCPBoolean PkgEstablish (); /* TYPEINFO: boolean()*/ - YCPBoolean PkgFreshen (); - /* TYPEINFO: boolean()*/ YCPBoolean PkgSolveCheckTargetOnly (); /* TYPEINFO: integer()*/ YCPValue PkgSolveErrors (); Modified: trunk/pkg-bindings/src/Source_Create.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source_Create.cc?rev=65948&r1=65947&r2=65948&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source_Create.cc (original) +++ trunk/pkg-bindings/src/Source_Create.cc Thu Sep 22 16:56:30 2011 @@ -726,7 +726,6 @@ if (!scan_only) { - PkgFreshen(); return YCPInteger(*new_repos.begin()); } else Modified: trunk/pkg-bindings/src/Source_Set.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source_Set.cc?rev=65948&r1=65947&r2=65948&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source_Set.cc (original) +++ trunk/pkg-bindings/src/Source_Set.cc Thu Sep 22 16:56:30 2011 @@ -90,8 +90,6 @@ // the source has been disabled, remove resolvables from the pool RemoveResolvablesFrom(repo); } - - PkgFreshen(); } catch (const zypp::Exception& excpt) { @@ -218,7 +216,6 @@ } } - PkgFreshen(); return YCPBoolean( !error ); } @@ -382,8 +379,6 @@ y2warning("Resetting the base product, the base product repository has been removed"); base_product = NULL; } - - PkgFreshen(); } catch (const zypp::Exception& excpt) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org