diff options
Diffstat (limited to 'ksirc/ksopts.cpp')
| -rw-r--r-- | ksirc/ksopts.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ksirc/ksopts.cpp b/ksirc/ksopts.cpp index ea1ac59e..057da43b 100644 --- a/ksirc/ksopts.cpp +++ b/ksirc/ksopts.cpp @@ -1,14 +1,7 @@ #include <tdeapplication.h> #include <tdeconfig.h> - -#if KDE_IS_VERSION(3,1,92) #include <kuser.h> -#else -#include <unistd.h> -#include <pwd.h> -#endif - #include <kdebug.h> #include "ksopts.h" @@ -54,20 +47,10 @@ KSOStartup::KSOStartup() KSOServer::KSOServer() { -#if KDE_IS_VERSION(3,1,92) KUser user; nick = user.loginName(); userID = user.loginName(); realName = user.fullName(); -#else - struct passwd *pw = getpwuid( getuid() ); - if ( pw ) - { - nick = TQString::fromLocal8Bit( pw->pw_name ); - userID = TQString::fromLocal8Bit( pw->pw_name ); - realName = TQString::fromLocal8Bit( pw->pw_gecos ).section( ',', 0, 0 ); - } -#endif } |
