diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-11-30 14:52:22 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-11-30 14:52:22 -0600 |
commit | c1dcc6c589304cca46a8aa2fb8c0277d60fe22ba (patch) | |
tree | 6baa81a75ffc7e2b9bd39a86e6c5e0485f130bb2 /nsplugins/viewer/viewer.cpp | |
parent | d4c4140b6667a35cf7d0e604006e94b52e5b17a0 (diff) | |
download | tdebase-c1dcc6c589304cca46a8aa2fb8c0277d60fe22ba.tar.gz tdebase-c1dcc6c589304cca46a8aa2fb8c0277d60fe22ba.zip |
Remove unused obsolete code from nsplugin viewer
Diffstat (limited to 'nsplugins/viewer/viewer.cpp')
-rw-r--r-- | nsplugins/viewer/viewer.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/nsplugins/viewer/viewer.cpp b/nsplugins/viewer/viewer.cpp index a7469b4f7..6007e5b0e 100644 --- a/nsplugins/viewer/viewer.cpp +++ b/nsplugins/viewer/viewer.cpp @@ -46,14 +46,8 @@ #endif #include <tdeconfig.h> -#if TQT_VERSION < 0x030100 -#include "kxt.h" -#include <X11/Intrinsic.h> -#include <X11/Shell.h> -#else #include "qxteventloop.h" #include "glibevents.h" -#endif /** * Use RLIMIT_DATA on systems that don't define RLIMIT_AS, @@ -227,31 +221,14 @@ int main(int argc, char** argv) kdDebug(1430) << "2 - parseCommandLine" << endl; parseCommandLine(argc, argv); -#if TQT_VERSION < 0x030100 - // Create application - kdDebug(1430) << "3 - XtToolkitInitialize" << endl; - XtToolkitInitialize(); - g_appcon = XtCreateApplicationContext(); - Display *dpy = XtOpenDisplay(g_appcon, NULL, "nspluginviewer", "nspluginviewer", - 0, 0, &argc, argv); - - _notifiers[0].setAutoDelete( TRUE ); - _notifiers[1].setAutoDelete( TRUE ); - _notifiers[2].setAutoDelete( TRUE ); - - kdDebug(1430) << "4 - KXtApplication app" << endl; - TDELocale::setMainCatalogue("nsplugin"); - KXtApplication app(dpy, argc, argv, "nspluginviewer"); -#else kdDebug(1430) << "3 - create QXtEventLoop" << endl; QXtEventLoop integrator( "nspluginviewer" ); parseCommandLine(argc, argv); TDELocale::setMainCatalogue("nsplugin"); kdDebug(1430) << "4 - create TDEApplication" << endl; - TDEApplication app( argc, argv, "nspluginviewer" ); + TDEApplication app( argc, argv, "nspluginviewer", true, true, true ); GlibEvents glibevents; -#endif { TDEConfig cfg("kcmnspluginrc", true); |