From 66d79f336d99facc0bf744cee7edc25ded569347 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Wed, 17 Dec 2025 18:14:14 +0900
Subject: Remove worldwide scores logic completely

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 klickety/highscores.cpp                          |   6 -
 klickety/highscores.h                            |   1 -
 knetwalk/src/highscores.cpp                      |   4 -
 libksirtet/common/highscores.cpp                 |   8 --
 libksirtet/common/highscores.h                   |   1 -
 libtdegames/CMakeLists.txt                       |   2 +-
 libtdegames/Makefile.am                          |   2 +-
 libtdegames/highscore/kexthighscore.cpp          |  23 ----
 libtdegames/highscore/kexthighscore.h            |  33 -----
 libtdegames/highscore/kexthighscore_gui.cpp      | 113 +---------------
 libtdegames/highscore/kexthighscore_gui.h        |   6 -
 libtdegames/highscore/kexthighscore_internal.cpp | 156 +----------------------
 libtdegames/highscore/kexthighscore_internal.h   |  13 +-
 libtdegames/libtdegames.pc.cmake                 |   2 +-
 14 files changed, 15 insertions(+), 355 deletions(-)

diff --git a/klickety/highscores.cpp b/klickety/highscores.cpp
index 62a2e28b..f15ae513 100644
--- a/klickety/highscores.cpp
+++ b/klickety/highscores.cpp
@@ -19,9 +19,3 @@ bool KLHighscores::isStrictlyLess(const Score &s1, const Score &s2) const
         return s1.data("time").toUInt()<s2.data("time").toUInt();
     return s1.score()>s2.score();
 }
-
-void KLHighscores::additionalQueryItems(KURL &url, const Score &s) const
-{
-    uint time = s.data("time").toUInt();
-    addToQueryURL(url, "scoreTime", TQString::number(time));
-}
diff --git a/klickety/highscores.h b/klickety/highscores.h
index 27548e69..33d95bd2 100644
--- a/klickety/highscores.h
+++ b/klickety/highscores.h
@@ -12,7 +12,6 @@ class KLHighscores : public BaseHighscores
  private:
     bool isStrictlyLess(const KExtHighscore::Score &,
                         const KExtHighscore::Score &) const;
-    void additionalQueryItems(KURL &url, const KExtHighscore::Score &) const;
 };
 
 #endif
diff --git a/knetwalk/src/highscores.cpp b/knetwalk/src/highscores.cpp
index adc9a7d3..dc7fa515 100644
--- a/knetwalk/src/highscores.cpp
+++ b/knetwalk/src/highscores.cpp
@@ -26,10 +26,6 @@ namespace KExtHighscore
 	ExtManager::ExtManager() : Manager(4)
 	{
 		setScoreType(Normal);
-		/*
-		setWWHighscores(KURL( HOMEPAGE ), VERSION);
-		setShowStatistics(true);
-		*/
 		const uint RANGE[16] = { 0, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160 };
 		TQMemArray<uint> s;
 		s.duplicate(RANGE, 16);
diff --git a/libksirtet/common/highscores.cpp b/libksirtet/common/highscores.cpp
index afb1bd3e..ee84242c 100644
--- a/libksirtet/common/highscores.cpp
+++ b/libksirtet/common/highscores.cpp
@@ -50,11 +50,3 @@ bool CommonHighscores::isStrictlyLess(const Score &s1, const Score &s2) const
         else return l1<l2;
     } else return BaseHighscores::isStrictlyLess(s1, s2);
 }
-
-void CommonHighscores::additionalQueryItems(KURL &url, const Score &s) const
-{
-    uint l = s.data("level").toUInt();
-    addToQueryURL(url, "scoreLevel", TQString::number(l));
-    uint r = s.data("removed").toUInt();
-    addToQueryURL(url, "scoreRemoved", TQString::number(r));
-}
diff --git a/libksirtet/common/highscores.h b/libksirtet/common/highscores.h
index f04c0d2e..92384763 100644
--- a/libksirtet/common/highscores.h
+++ b/libksirtet/common/highscores.h
@@ -14,7 +14,6 @@ class LIBKSIRTET_EXPORT CommonHighscores : public BaseHighscores
     void convertLegacy(uint level);
     bool isStrictlyLess(const KExtHighscore::Score &,
                         const KExtHighscore::Score &) const;
-    void additionalQueryItems(KURL &, const KExtHighscore::Score &) const;
 };
 
 #endif
diff --git a/libtdegames/CMakeLists.txt b/libtdegames/CMakeLists.txt
index 22eec9a9..0f5dd9af 100644
--- a/libtdegames/CMakeLists.txt
+++ b/libtdegames/CMakeLists.txt
@@ -35,7 +35,7 @@ tde_add_library( tdegames SHARED AUTOMOC
   SOURCES kcarddialog.cpp kstdgameaction.cpp kgamemisc.cpp kchatbase.cpp
     kchat.cpp kchatdialog.cpp kgameprogress.cpp kcanvasrootpixmap.cpp
     kgamelcd.cpp
-  VERSION 1.2.0
+  VERSION 4.0.0
   EMBED khighscore-static kgame-static kgamedialogs-static
   LINK tdecore-shared tdeui-shared tdednssd-shared tdeio-shared
   DESTINATION ${LIB_INSTALL_DIR}
diff --git a/libtdegames/Makefile.am b/libtdegames/Makefile.am
index 67fbed02..646c9db2 100644
--- a/libtdegames/Makefile.am
+++ b/libtdegames/Makefile.am
@@ -1,6 +1,6 @@
 
 lib_LTLIBRARIES = libtdegames.la
-libtdegames_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -version-info 3:0:2
+libtdegames_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -version-info 4:0:0
 libtdegames_la_LIBADD  = highscore/libkhighscore.la kgame/libkgame.la kgame/dialogs/libkgamedialogs.la \
 		$(LIB_TDESYCOCA) $(LIB_TDEDNSSD) $(LIB_TQT) $(LIB_TDECORE) $(LIB_TDEUI)
 
diff --git a/libtdegames/highscore/kexthighscore.cpp b/libtdegames/highscore/kexthighscore.cpp
index 167f0b9a..5a9e22d2 100644
--- a/libtdegames/highscore/kexthighscore.cpp
+++ b/libtdegames/highscore/kexthighscore.cpp
@@ -145,18 +145,6 @@ void Manager::setShowDrawGamesStatistic(bool show)
     internal->showDrawGames = show;
 }
 
-void Manager::setWWHighscores(const KURL &url, const TQString &version)
-{
-    Q_ASSERT( url.isValid() );
-    internal->serverURL = url;
-    const char *HS_WW_URL = "ww hs url";
-    ConfigGroup cg;
-    if ( cg.config()->hasKey(HS_WW_URL) )
-        internal->serverURL = cg.config()->readEntry(HS_WW_URL);
-    else cg.config()->writeEntry(HS_WW_URL, url.url());
-    internal->version = version;
-}
-
 void Manager::setScoreHistogram(const TQMemArray<uint> &scores,
                                 ScoreTypeBound type)
 {
@@ -275,15 +263,4 @@ TQString Manager::gameTypeLabel(uint gameType, LabelType type) const
     return TQString();
 }
 
-void Manager::addToQueryURL(KURL &url, const TQString &item,
-                               const TQString &content)
-{
-    Q_ASSERT( !item.isEmpty() && url.queryItem(item).isNull() );
-
-    TQString query = url.query();
-    if ( !query.isEmpty() ) query += '&';
-	query += item + '=' + KURL::encode_string(content);
-	url.setQuery(query);
-}
-
 } // namescape
diff --git a/libtdegames/highscore/kexthighscore.h b/libtdegames/highscore/kexthighscore.h
index a21459db..a8f3ed0d 100644
--- a/libtdegames/highscore/kexthighscore.h
+++ b/libtdegames/highscore/kexthighscore.h
@@ -150,18 +150,6 @@ class TDE_EXPORT Manager
     Manager(uint nbGameTypes = 1, uint maxNbEntries = 10);
     virtual ~Manager();
     
-    /**
-     * Set the world-wide highscores.
-     * By default there is no world-wide highscores.
-     *
-     * Note: should be called at construction time.
-     *
-     * @param url the web server url
-     * @param version the game version which is sent to the web server (it can
-     * be useful for backward compatibility on the server side).
-     */
-    void setWWHighscores(const KURL &url, const TQString &version);
-
     /**
      * Set if the number of lost games should be track for the world-wide
      * highscores statistics. By default, there is no tracking.
@@ -334,27 +322,6 @@ class TDE_EXPORT Manager
      */
     void submitLegacyScore(const Score &score) const;
 
-    /**
-     * This method is called before submitting a score to the world-wide
-     * highscores server. You can reimplement this method to add an entry
-     * with @ref addToQueryURL. By default this method does nothing.
-     *
-     * @param url the URL to query
-     * @param score the score to be submitted.
-     */
-    virtual void additionalQueryItems(KURL &url, const Score &score) const
-        { Q_UNUSED(url); Q_UNUSED(score); }
-
-    /**
-     * Add an entry to the url to be submitted (@see additionalQueryItems).
-     *
-     * @param url the URL to query
-     * @param item the item name
-     * @param content the item content
-     */
-    static void addToQueryURL(KURL &url, const TQString &item,
-                              const TQString &content);
-
     friend class ManagerPrivate;
 
  private:
diff --git a/libtdegames/highscore/kexthighscore_gui.cpp b/libtdegames/highscore/kexthighscore_gui.cpp
index 2a598a21..4ae9fb9c 100644
--- a/libtdegames/highscore/kexthighscore_gui.cpp
+++ b/libtdegames/highscore/kexthighscore_gui.cpp
@@ -122,7 +122,7 @@ void HighscoresList::load(const ItemArray &items, int highlight)
 //-----------------------------------------------------------------------------
 HighscoresWidget::HighscoresWidget(TQWidget *parent)
     : TQWidget(parent, "show_highscores_widget"),
-      _scoresUrl(0), _playersUrl(0), _statsTab(0), _histoTab(0)
+      _statsTab(0), _histoTab(0)
 {
     const ScoreInfos &s = internal->scoreInfos();
     const PlayerInfos &p = internal->playerInfos();
@@ -154,23 +154,6 @@ HighscoresWidget::HighscoresWidget(TQWidget *parent)
         _histoTab = new HistogramTab(_tw);
         _tw->addTab(_histoTab, i18n("Histogram"));
     }
-
-    // url labels
-    if ( internal->isWWHSAvailable() ) {
-        KURL url = internal->queryURL(ManagerPrivate::Scores);
-        _scoresUrl = new KURLLabel(url.url(),
-                                   i18n("View world-wide highscores"), this);
-        connect(_scoresUrl, TQ_SIGNAL(leftClickedURL(const TQString &)),
-                TQ_SLOT(showURL(const TQString &)));
-        vbox->addWidget(_scoresUrl);
-
-        url = internal->queryURL(ManagerPrivate::Players);
-        _playersUrl = new KURLLabel(url.url(),
-                                    i18n("View world-wide players"), this);
-        connect(_playersUrl, TQ_SIGNAL(leftClickedURL(const TQString &)),
-                TQ_SLOT(showURL(const TQString &)));
-        vbox->addWidget(_playersUrl);
-    }
 }
 
 void HighscoresWidget::changeTab(int i)
@@ -179,19 +162,10 @@ void HighscoresWidget::changeTab(int i)
         _tw->setCurrentPage(i);
 }
 
-void HighscoresWidget::showURL(const TQString &url) const
-{
-    (void)new KRun(KURL(url));
-}
-
 void HighscoresWidget::load(int rank)
 {
     _scoresList->load(internal->scoreInfos(), rank);
     _playersList->load(internal->playerInfos(), internal->playerInfos().id());
-    if (_scoresUrl)
-        _scoresUrl->setURL(internal->queryURL(ManagerPrivate::Scores).url());
-    if (_playersUrl)
-        _playersUrl->setURL(internal->queryURL(ManagerPrivate::Players).url());
     if (_statsTab) _statsTab->load();
     if (_histoTab) _histoTab->load();
 }
@@ -356,19 +330,10 @@ ConfigDialog::ConfigDialog(TQWidget *parent)
     : KDialogBase(Swallow, i18n("Configure Highscores"),
                   Ok|Apply|Cancel, Cancel,
                   parent, "configure_highscores", true, true),
-      _saved(false), _WWHEnabled(0)
+      _saved(false)
 {
-    TQWidget *page = 0;
-    TQTabWidget *tab = 0;
-    if ( internal->isWWHSAvailable() ) {
-        tab = new TQTabWidget(this);
-        setMainWidget(tab);
-        page = new TQWidget(tab);
-        tab->addTab(page, i18n("Main"));
-    } else {
-        page = new TQWidget(this);
-        setMainWidget(page);
-    }
+    TQWidget *page = new TQWidget(this);
+    setMainWidget(page);
 
     TQGridLayout *pageTop =
         new TQGridLayout(page, 2, 2, spacingHint(), spacingHint());
@@ -392,38 +357,6 @@ ConfigDialog::ConfigDialog(TQWidget *parent)
     _comment->setMaxLength(50);
     pageTop->addWidget(_comment, 1, 1);
 
-    if (tab) {
-        _WWHEnabled
-            = new TQCheckBox(i18n("World-wide highscores enabled"), page);
-        connect(_WWHEnabled, TQ_SIGNAL(toggled(bool)),
-                TQ_SLOT(modifiedSlot()));
-        pageTop->addMultiCellWidget(_WWHEnabled, 2, 2, 0, 1);
-
-        // advanced tab
-        TQWidget *page = new TQWidget(tab);
-        tab->addTab(page, i18n("Advanced"));
-        TQVBoxLayout *pageTop =
-            new TQVBoxLayout(page, spacingHint(), spacingHint());
-
-        TQVGroupBox *group = new TQVGroupBox(i18n("Registration Data"), page);
-        pageTop->addWidget(group);
-        TQGrid *grid = new TQGrid(2, group);
-        grid->setSpacing(spacingHint());
-
-        label = new TQLabel(i18n("Nickname:"), grid);
-        _registeredName = new KLineEdit(grid);
-        _registeredName->setReadOnly(true);
-
-        label = new TQLabel(i18n("Key:"), grid);
-        _key = new KLineEdit(grid);
-        _key->setReadOnly(true);
-
-        KGuiItem gi = KStdGuiItem::clear();
-        gi.setText(i18n("Remove"));
-        _removeButton = new KPushButton(gi, grid);
-        connect(_removeButton, TQ_SIGNAL(clicked()), TQ_SLOT(removeSlot()));
-    }
-
     load();
     enableButtonOK( !_nickname->text().isEmpty() );
     enableButtonApply(false);
@@ -448,52 +381,21 @@ void ConfigDialog::accept()
     }
 }
 
-void ConfigDialog::removeSlot()
-{
-    KGuiItem gi = KStdGuiItem::clear();
-    gi.setText(i18n("Remove"));
-    int res = KMessageBox::warningContinueCancel(this,
-                               i18n("This will permanently remove your "
-                               "registration key. You will not be able to use "
-                               "the currently registered nickname anymore."),
-                               TQString(), gi);
-    if ( res==KMessageBox::Continue ) {
-        internal->playerInfos().removeKey();
-        _registeredName->clear();
-        _key->clear();
-        _removeButton->setEnabled(false);
-        _WWHEnabled->setChecked(false);
-        modifiedSlot();
-    }
-}
-
 void ConfigDialog::load()
 {
     internal->hsConfig().readCurrentConfig();
     const PlayerInfos &infos = internal->playerInfos();
     _nickname->setText(infos.isAnonymous() ? TQString() : infos.name());
     _comment->setText(infos.comment());
-    if (_WWHEnabled) {
-        _WWHEnabled->setChecked(infos.isWWEnabled());
-        if ( !infos.key().isEmpty() ) {
-            _registeredName->setText(infos.registeredName());
-            _registeredName->home(false);
-            _key->setText(infos.key());
-            _key->home(false);
-        }
-        _removeButton->setEnabled(!infos.key().isEmpty());
-    }
 }
 
 bool ConfigDialog::save()
 {
-    bool enabled = (_WWHEnabled ? _WWHEnabled->isChecked() : false);
-
     // do not bother the user with "nickname empty" if he has not
     // messed with nickname settings ...
     TQString newName = _nickname->text();
-    if ( newName.isEmpty() && !internal->playerInfos().isAnonymous()
-         && !enabled ) return true;
+    if ( newName.isEmpty() && !internal->playerInfos().isAnonymous() )
+        return true;
 
     if ( newName.isEmpty() ) {
         KMessageBox::sorry(this, i18n("Please choose a non empty nickname."));
@@ -505,8 +407,7 @@ bool ConfigDialog::save()
         return false;
     }
 
-    int res =
-        internal->modifySettings(newName, _comment->text(), enabled, this);
+    int res = internal->modifySettings(newName, _comment->text(), this);
     if (res) {
         load(); // needed to update view when "apply" is clicked
         enableButtonApply(false);
diff --git a/libtdegames/highscore/kexthighscore_gui.h b/libtdegames/highscore/kexthighscore_gui.h
index d0f742f1..63db3deb 100644
--- a/libtdegames/highscore/kexthighscore_gui.h
+++ b/libtdegames/highscore/kexthighscore_gui.h
@@ -103,13 +103,11 @@ class HighscoresWidget : public TQWidget
     void changeTab(int i);
 
  private slots:
-    void showURL(const TQString &) const;
     void tabChanged() { emit tabChanged(_tw->currentPageIndex()); }
 
  private:
     TQTabWidget     *_tw;
     HighscoresList *_scoresList, *_playersList;
-    KURLLabel      *_scoresUrl, *_playersUrl;
     AdditionalTab  *_statsTab, *_histoTab;
 };
 
@@ -175,17 +173,13 @@ class ConfigDialog : public KDialogBase
 
  private slots:
     void modifiedSlot();
-    void removeSlot();
     void accept();
     void slotApply() { save(); }
     void nickNameChanged(const TQString &);
 
  private:
     bool         _saved;
-    TQCheckBox   *_WWHEnabled;
     TQLineEdit   *_nickname, *_comment;
-    KLineEdit   *_key, *_registeredName;
-    KPushButton *_removeButton;
 
     void load();
     bool save();
diff --git a/libtdegames/highscore/kexthighscore_internal.cpp b/libtdegames/highscore/kexthighscore_internal.cpp
index c43fd550..f26a2683 100644
--- a/libtdegames/highscore/kexthighscore_internal.cpp
+++ b/libtdegames/highscore/kexthighscore_internal.cpp
@@ -252,9 +252,7 @@ uint ScoreInfos::nbEntries() const
 
 //-----------------------------------------------------------------------------
 const char *HS_ID              = "player id";
-const char *HS_REGISTERED_NAME = "registered name";
 const char *HS_KEY             = "player key";
-const char *HS_WW_ENABLED      = "ww hs enabled";
 
 PlayerInfos::PlayerInfos()
 {
@@ -367,12 +365,6 @@ TQString PlayerInfos::key() const
     return cg.config()->readEntry(HS_KEY, TQString());
 }
 
-bool PlayerInfos::isWWEnabled() const
-{
-    ConfigGroup cg;
-    return cg.config()->readBoolEntry(HS_WW_ENABLED, false);
-}
-
 TQString PlayerInfos::histoName(uint i) const
 {
     const TQMemArray<uint> &sh = _histogram;
@@ -470,21 +462,13 @@ void PlayerInfos::modifyName(const TQString &newName) const
 }
 
 void PlayerInfos::modifySettings(const TQString &newName,
-                                 const TQString &comment, bool WWEnabled,
+                                 const TQString &comment,
                                  const TQString &newKey) const
 {
     modifyName(newName);
     item("comment")->write(_id, comment);
     ConfigGroup cg;
-    cg.config()->writeEntry(HS_WW_ENABLED, WWEnabled);
     if ( !newKey.isEmpty() ) cg.config()->writeEntry(HS_KEY, newKey);
-    if (WWEnabled) cg.config()->writeEntry(HS_REGISTERED_NAME, newName);
-}
-
-TQString PlayerInfos::registeredName() const
-{
-    ConfigGroup cg;
-    return cg.config()->readEntry(HS_REGISTERED_NAME, TQString());
 }
 
 void PlayerInfos::removeKey()
@@ -500,13 +484,9 @@ void PlayerInfos::removeKey()
         sk = str.arg(HS_KEY).arg(i);
     } while ( !cg.config()->readEntry(sk, TQString()).isEmpty() );
     cg.config()->writeEntry(sk, key());
-    cg.config()->writeEntry(str.arg(HS_REGISTERED_NAME).arg(i),
-                            registeredName());
 
     // clear current key/nickname
     cg.config()->deleteEntry(HS_KEY);
-    cg.config()->deleteEntry(HS_REGISTERED_NAME);
-    cg.config()->writeEntry(HS_WW_ENABLED, false);
 }
 
 //-----------------------------------------------------------------------------
@@ -531,54 +511,6 @@ ManagerPrivate::~ManagerPrivate()
     delete _hsConfig;
 }
 
-KURL ManagerPrivate::queryURL(QueryType type, const TQString &newName) const
-{
-    KURL url = serverURL;
-    TQString nameItem = "nickname";
-    TQString name = _playerInfos->registeredName();
-    bool withVersion = true;
-    bool key = false;
-    bool level = false;
-
-	switch (type) {
-        case Submit:
-            url.addPath("submit.php");
-            level = true;
-            key = true;
-            break;
-        case Register:
-            url.addPath("register.php");
-            name = newName;
-            break;
-        case Change:
-            url.addPath("change.php");
-            key = true;
-            if ( newName!=name )
-                Manager::addToQueryURL(url, "new_nickname", newName);
-            break;
-        case Players:
-            url.addPath("players.php");
-            nameItem = "highlight";
-            withVersion = false;
-            break;
-        case Scores:
-            url.addPath("highscores.php");
-            withVersion = false;
-            if ( _nbGameTypes>1 ) level = true;
-            break;
-	}
-
-    if (withVersion) Manager::addToQueryURL(url, "version", version);
-    if ( !name.isEmpty() ) Manager::addToQueryURL(url, nameItem, name);
-    if (key) Manager::addToQueryURL(url, "key", _playerInfos->key());
-    if (level) {
-        TQString label = manager.gameTypeLabel(_gameType, Manager::WW);
-        if ( !label.isEmpty() ) Manager::addToQueryURL(url, "level", label);
-    }
-
-    return url;
-}
-
 // strings that needs to be translated (coming from the highscores server)
 const char *DUMMY_STRINGS[] = {
     I18N_NOOP("Undefined error."),
@@ -602,56 +534,6 @@ const char *DUMMY_STRINGS[] = {
 const char *UNABLE_TO_CONTACT =
     I18N_NOOP("Unable to contact world-wide highscore server");
 
-bool ManagerPrivate::doQuery(const KURL &url, TQWidget *parent,
-                                TQDomNamedNodeMap *map)
-{
-    TDEIO::http_update_cache(url, true, 0); // remove cache !
-
-    TQString tmpFile;
-    if ( !TDEIO::NetAccess::download(url, tmpFile, parent) ) {
-        TQString details = i18n("Server URL: %1").arg(url.host());
-        KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details);
-        return false;
-    }
-
-	TQFile file(tmpFile);
-	if ( !file.open(IO_ReadOnly) ) {
-        TDEIO::NetAccess::removeTempFile(tmpFile);
-        TQString details = i18n("Unable to open temporary file.");
-        KMessageBox::detailedSorry(parent, i18n(UNABLE_TO_CONTACT), details);
-        return false;
-    }
-
-	TQTextStream t(&file);
-	TQString content = t.read().stripWhiteSpace();
-	file.close();
-    TDEIO::NetAccess::removeTempFile(tmpFile);
-
-	TQDomDocument doc;
-    if ( doc.setContent(content) ) {
-        TQDomElement root = doc.documentElement();
-        TQDomElement element = root.firstChild().toElement();
-        if ( element.tagName()=="success" ) {
-            if (map) *map = element.attributes();
-            return true;
-        }
-        if ( element.tagName()=="error" ) {
-            TQDomAttr attr = element.attributes().namedItem("label").toAttr();
-            if ( !attr.isNull() ) {
-                TQString msg = i18n(attr.value().latin1());
-                TQString caption = i18n("Message from world-wide highscores "
-                                       "server");
-                KMessageBox::sorry(parent, msg, caption);
-                return false;
-            }
-        }
-    }
-    TQString msg = i18n("Invalid answer from world-wide highscores server.");
-    TQString details = i18n("Raw message: %1").arg(content);
-    KMessageBox::detailedSorry(parent, msg, details);
-    return false;
-}
-
 bool ManagerPrivate::getFromQuery(const TQDomNamedNodeMap &map,
                                   const TQString &name, TQString &value,
                                   TQWidget *parent)
@@ -684,24 +566,12 @@ int ManagerPrivate::rank(const Score &score) const
 }
 
 bool ManagerPrivate::modifySettings(const TQString &newName,
-                                    const TQString &comment, bool WWEnabled,
+                                    const TQString &comment,
                                     TQWidget *widget)
 {
     TQString newKey;
     bool newPlayer = false;
 
-    if (WWEnabled) {
-        newPlayer = _playerInfos->key().isEmpty()
-                    || _playerInfos->registeredName().isEmpty();
-        KURL url = queryURL((newPlayer ? Register : Change), newName);
-        Manager::addToQueryURL(url, "comment", comment);
-
-        TQDomNamedNodeMap map;
-        bool ok = doQuery(url, widget, &map);
-        if ( !ok || (newPlayer && !getFromQuery(map, "key", newKey, widget)) )
-            return false;
-    }
-
     bool ok = _hsConfig->lockForWriting(widget); // no GUI when locking
     if (ok) {
         // check again name in case the config file has been changed...
@@ -709,7 +579,7 @@ bool ManagerPrivate::modifySettings(const TQString &newName,
         // committed but should be very rare and not really problematic
         ok = ( !_playerInfos->isNameUsed(newName) );
         if (ok)
-            _playerInfos->modifySettings(newName, comment, WWEnabled, newKey);
+            _playerInfos->modifySettings(newName, comment, newKey);
         _hsConfig->writeAndUnlock();
     }
     return ok;
@@ -807,9 +677,6 @@ int ManagerPrivate::submitScore(const Score &ascore,
         _hsConfig->writeAndUnlock();
     }
 
-    if ( _playerInfos->isWWEnabled() )
-        submitWorldWide(score, widget);
-
     return rank;
 }
 
@@ -824,23 +691,6 @@ int ManagerPrivate::submitLocal(const Score &score)
     return r;
 }
 
-bool ManagerPrivate::submitWorldWide(const Score &score,
-                                     TQWidget *widget) const
-{
-    if ( score.type()==Lost && !trackLostGames ) return true;
-    if ( score.type()==Draw && !trackDrawGames ) return true;
-
-    KURL url = queryURL(Submit);
-    manager.additionalQueryItems(url, score);
-    int s = (score.type()==Won ? score.score() : (int)score.type());
-    TQString str =  TQString::number(s);
-    Manager::addToQueryURL(url, "score", str);
-    KMD5 context(TQString(_playerInfos->registeredName() + str).latin1());
-    Manager::addToQueryURL(url, "check", context.hexDigest());
-
-    return doQuery(url, widget);
-}
-
 void ManagerPrivate::exportHighscores(TQTextStream &s)
 {
     uint tmp = _gameType;
diff --git a/libtdegames/highscore/kexthighscore_internal.h b/libtdegames/highscore/kexthighscore_internal.h
index 76f4eb65..f389fbca 100644
--- a/libtdegames/highscore/kexthighscore_internal.h
+++ b/libtdegames/highscore/kexthighscore_internal.h
@@ -193,9 +193,7 @@ class PlayerInfos : public ItemArray
     bool isAnonymous() const;
     TQString prettyName() const { return prettyName(_id); }
     TQString prettyName(uint id) const { return item("name")->pretty(id); }
-    TQString registeredName() const;
     TQString comment() const { return item("comment")->pretty(_id); }
-    bool isWWEnabled() const;
     TQString key() const;
     uint id() const { return _id; }
     uint oldLocalId() const { return _oldLocalId; }
@@ -210,7 +208,7 @@ class PlayerInfos : public ItemArray
     bool isNameUsed(const TQString &name) const;
     void modifyName(const TQString &newName) const;
     void modifySettings(const TQString &newName, const TQString &comment,
-                        bool WWEnabled, const TQString &newKey) const;
+                        const TQString &newKey) const;
     void removeKey();
 
  private:
@@ -228,7 +226,7 @@ class ManagerPrivate
     ~ManagerPrivate();
 
     bool modifySettings(const TQString &newName, const TQString &comment,
-                        bool WWEnabled, TQWidget *widget);
+                        TQWidget *widget);
 
     void setGameType(uint type);
     void checkFirst();
@@ -238,18 +236,14 @@ class ManagerPrivate
 
     uint gameType() const        { return _gameType; }
     uint nbGameTypes() const     { return _nbGameTypes; }
-    bool isWWHSAvailable() const { return !serverURL.isEmpty(); }
     ScoreInfos &scoreInfos()     { return *_scoreInfos; }
     PlayerInfos &playerInfos()   { return *_playerInfos; }
     KHighscore &hsConfig()       { return *_hsConfig; }
     enum QueryType { Submit, Register, Change, Players, Scores };
-    KURL queryURL(QueryType type, const TQString &newName=TQString()) const;
 
     void exportHighscores(TQTextStream &);
 
     Manager &manager;
-    KURL     serverURL;
-    TQString  version;
     bool     showStatistics, showDrawGames, trackLostGames, trackDrawGames;
     Manager::ShowMode showMode;
 
@@ -264,9 +258,6 @@ class ManagerPrivate
     // return -1 if not a local best score
     int rank(const Score &score) const;
 
-    bool submitWorldWide(const Score &score, TQWidget *parent) const;
-    static bool doQuery(const KURL &url, TQWidget *parent,
-                        TQDomNamedNodeMap *map = 0);
     static bool getFromQuery(const TQDomNamedNodeMap &map, const TQString &name,
                              TQString &value, TQWidget *parent);
     void convertToGlobal();
diff --git a/libtdegames/libtdegames.pc.cmake b/libtdegames/libtdegames.pc.cmake
index ad731b1d..790bf20c 100644
--- a/libtdegames/libtdegames.pc.cmake
+++ b/libtdegames/libtdegames.pc.cmake
@@ -7,6 +7,6 @@ Name: @PROJECT_NAME@
 Description: @PROJECT_NAME@ is a collection of functions used by some games for the Trinity Desktop Environment.
 URL: https://mirror.git.trinitydesktop.org/gitea/TDE/tdegames
 Requires: tdelibs
-Version: 1.2.0
+Version: 4.0.0
 Libs: -L${libdir} -ltdegames
 Cflags: -I${includedir}
-- 
cgit v1.2.3

