Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49589 - in /trunk/storage/libstorage/src: AppUtil.cc AppUtil.h AsciiFile.cc AsciiFile.h
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Fri, 01 Aug 2008 15:56:27 -0000
  • Message-id: <20080801155627.3E5442734D@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Aug 1 17:56:26 2008
New Revision: 49589

URL: http://svn.opensuse.org/viewcvs/yast?rev=49589&view=rev
Log:
- cleanup

Modified:
trunk/storage/libstorage/src/AppUtil.cc
trunk/storage/libstorage/src/AppUtil.h
trunk/storage/libstorage/src/AsciiFile.cc
trunk/storage/libstorage/src/AsciiFile.h

Modified: trunk/storage/libstorage/src/AppUtil.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AppUtil.cc?rev=49589&r1=49588&r2=49589&view=diff
==============================================================================
--- trunk/storage/libstorage/src/AppUtil.cc (original)
+++ trunk/storage/libstorage/src/AppUtil.cc Fri Aug 1 17:56:26 2008
@@ -272,20 +272,6 @@
}


-void putNthWord(int Num_iv, string Word_Cv, string& Line_Cr)
-{
- string Last_Ci = extractNthWord(Num_iv, Line_Cr, true);
- int Len_ii = Last_Ci.find_first_of(app_ws);
- Line_Cr.replace(Line_Cr.length() - Last_Ci.length(), Len_ii, Word_Cv);
-}
-
-
-void removeLastIf (string& Text_Cr, char Char_cv)
-{
- if (Text_Cr.length() > 0 && Text_Cr[Text_Cr.length() - 1] == Char_cv)
- Text_Cr.erase(Text_Cr.length() - 1);
-}
-
string normalizeDevice( const string& dev )
{
string ret( dev );

Modified: trunk/storage/libstorage/src/AppUtil.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AppUtil.h?rev=49589&r1=49588&r2=49589&view=diff
==============================================================================
--- trunk/storage/libstorage/src/AppUtil.h (original)
+++ trunk/storage/libstorage/src/AppUtil.h Fri Aug 1 17:56:26 2008
@@ -41,7 +41,6 @@
void getFindMap( const char* path, std::map<string,string>& m,
bool unique=true );
void getFindRevMap( const char* path, std::map<string,string>& m );
-void removeLastIf(string& Text_Cr, char Char_cv);
string normalizeDevice( const string& dev );
void normalizeDevice( string& dev );
string undevDevice( const string& dev );

Modified: trunk/storage/libstorage/src/AsciiFile.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AsciiFile.cc?rev=49589&r1=49588&r2=49589&view=diff
==============================================================================
--- trunk/storage/libstorage/src/AsciiFile.cc (original)
+++ trunk/storage/libstorage/src/AsciiFile.cc Fri Aug 1 17:56:26 2008
@@ -418,6 +418,13 @@
}


+void AsciiFile::removeLastIf (string& Text_Cr, char Char_cv) const
+{
+ if (Text_Cr.length() > 0 && Text_Cr[Text_Cr.length() - 1] == Char_cv)
+ Text_Cr.erase(Text_Cr.length() - 1);
+}
+
+
#if 0
void AsciiFile::put( const Regex& Pat_Cv, const String& Line_Cv )
{

Modified: trunk/storage/libstorage/src/AsciiFile.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AsciiFile.h?rev=49589&r1=49588&r2=49589&view=diff
==============================================================================
--- trunk/storage/libstorage/src/AsciiFile.h (original)
+++ trunk/storage/libstorage/src/AsciiFile.h Fri Aug 1 17:56:26 2008
@@ -57,6 +57,7 @@
protected:
bool appendFile( const string& Name_Cv, std::vector<string>& Lines_Cr
);
bool appendFile( AsciiFile& File_Cv, std::vector<string>& Lines_Cr );
+ void removeLastIf(string& Text_Cr, char Char_cv) const;

bool BackupCreated_b;
string BackupExtension_C;

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages