[yast-commit] r41995 - in /trunk/core/liby2util-r/src: Digest.cc Makefile.am PathInfo.cc include/y2util/Digest.h include/y2util/Makefile.am include/y2util/PathInfo.h
Author: mvidner Date: Tue Nov 13 10:59:17 2007 New Revision: 41995 URL: http://svn.opensuse.org/viewcvs/yast?rev=41995&view=rev Log: Removed md5sum and sha1sum from PathInfo => Removed Digest and its deps. (It's not dead, it's resting.) Removed: trunk/core/liby2util-r/src/Digest.cc trunk/core/liby2util-r/src/include/y2util/Digest.h Modified: trunk/core/liby2util-r/src/Makefile.am trunk/core/liby2util-r/src/PathInfo.cc trunk/core/liby2util-r/src/include/y2util/Makefile.am trunk/core/liby2util-r/src/include/y2util/PathInfo.h Modified: trunk/core/liby2util-r/src/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2util-r/src/Makefile.am?rev=41995&r1=41994&r2=41995&view=diff ============================================================================== --- trunk/core/liby2util-r/src/Makefile.am (original) +++ trunk/core/liby2util-r/src/Makefile.am Tue Nov 13 10:59:17 2007 @@ -13,7 +13,6 @@ lib_LTLIBRARIES = liby2util.la liby2util_la_SOURCES = \ - Digest.cc \ ExternalDataSource.cc \ ExternalProgram.cc \ MemUsage.cc \ Modified: trunk/core/liby2util-r/src/PathInfo.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2util-r/src/PathInfo.cc?rev=41995&r1=41994&r2=41995&view=diff ============================================================================== --- trunk/core/liby2util-r/src/PathInfo.cc (original) +++ trunk/core/liby2util-r/src/PathInfo.cc Tue Nov 13 10:59:17 2007 @@ -27,7 +27,6 @@ #include <y2util/ExternalProgram.h> #include <y2util/PathInfo.h> -#include <y2util/Digest.h> using namespace std; @@ -676,42 +675,6 @@ /////////////////////////////////////////////////////////////////// // // -// METHOD NAME : PathInfo::md5sum -// METHOD TYPE : std::string -// -std::string PathInfo::md5sum( const Pathname & file ) -{ - if ( ! PathInfo( file ).isFile() ) { - return string(); - } - ifstream istr( file.asString().c_str() ); - if ( ! istr ) { - return string(); - } - return Digest::digest( "MD5", istr ); -} - -/////////////////////////////////////////////////////////////////// -// -// -// METHOD NAME : PathInfo::sha1sum -// METHOD TYPE : std::string -// -std::string PathInfo::sha1sum( const Pathname & file ) -{ - if ( ! PathInfo( file ).isFile() ) { - return string(); - } - ifstream istr( file.asString().c_str() ); - if ( ! istr ) { - return string(); - } - return Digest::digest( "SHA1", istr ); -} - -/////////////////////////////////////////////////////////////////// -// -// // METHOD NAME : PathInfo::erase // METHOD TYPE : int // Modified: trunk/core/liby2util-r/src/include/y2util/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2util-r/src/include/y2util/Makefile.am?rev=41995&r1=41994&r2=41995&view=diff ============================================================================== --- trunk/core/liby2util-r/src/include/y2util/Makefile.am (original) +++ trunk/core/liby2util-r/src/include/y2util/Makefile.am Tue Nov 13 10:59:17 2007 @@ -7,7 +7,6 @@ # these go to $(pkgincludedir) pkginclude_HEADERS = \ - Digest.h \ ExternalDataSource.h \ ExternalProgram.h \ MemUsage.h \ Modified: trunk/core/liby2util-r/src/include/y2util/PathInfo.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2util-r/src/include/y2util/PathInfo.h?rev=41995&r1=41994&r2=41995&view=diff ============================================================================== --- trunk/core/liby2util-r/src/include/y2util/PathInfo.h (original) +++ trunk/core/liby2util-r/src/include/y2util/PathInfo.h Tue Nov 13 10:59:17 2007 @@ -331,20 +331,6 @@ **/ static int copy_file2dir( const Pathname & file, const Pathname & dest ); - /** - * Compute a files md5sum. - * - * @return the files md5sum on success, otherwise an empty string.. - **/ - static std::string md5sum( const Pathname & file ); - - /** - * Compute a files sha1sum. - * - * @return the files sha1sum on success, otherwise an empty string.. - **/ - static std::string sha1sum( const Pathname & file ); - /////////////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn.opensuse.org