From 1b5620f218c0a0e7ca38c244750cba077ca8a867 Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <Ansgar.Burchardt@tu-dresden.de>
Date: Thu, 24 Aug 2017 16:03:00 +0200
Subject: [PATCH] remove `changemc` command

---
 ui/commands.cc  | 24 ------------------------
 ui/commands.doc | 19 -------------------
 2 files changed, 43 deletions(-)

diff --git a/ui/commands.cc b/ui/commands.cc
index f3a244202..0d82d006f 100644
--- a/ui/commands.cc
+++ b/ui/commands.cc
@@ -1431,29 +1431,6 @@ static INT SaveCommand (INT argc, char **argv)
 }
 
 
-/** \brief Implementation of \ref changemc. */
-static INT ChangeMagicCookieCommand (INT argc, char **argv)
-{
-  MULTIGRID *theMG;
-  int iValue;
-
-  theMG = currMG;
-  if (theMG==NULL)
-  {
-    PrintErrorMessage('E',"changemc","no open multigrid");
-    return (CMDERRORCODE);
-  }
-
-  if (sscanf(argv[0]," changemc %d",&iValue)!=1)
-  {
-    PrintErrorMessage('E',"changemc","cannot read magic-cookie");
-    return (CMDERRORCODE);
-  }
-  MG_MAGIC_COOKIE(theMG) = iValue;
-  return(OKCODE);
-}
-
-
 /** \brief Implementation of \ref level. */
 static INT LevelCommand (INT argc, char **argv)
 {
@@ -3630,7 +3607,6 @@ INT NS_DIM_PREFIX InitCommands ()
   if (CreateCommand("open",                       OpenCommand                                     )==NULL) return (__LINE__);
   if (CreateCommand("close",                      CloseCommand                                    )==NULL) return (__LINE__);
   if (CreateCommand("save",                       SaveCommand                                     )==NULL) return (__LINE__);
-  if (CreateCommand("changemc",           ChangeMagicCookieCommand                )==NULL) return (__LINE__);
   if (CreateCommand("level",                      LevelCommand                                    )==NULL) return (__LINE__);
   if (CreateCommand("renumber",           RenumberMGCommand                               )==NULL) return (__LINE__);
   if (CreateCommand("ordernodes",         OrderNodesCommand                               )==NULL) return (__LINE__);
diff --git a/ui/commands.doc b/ui/commands.doc
index f5d96ff12..07277e0f1 100644
--- a/ui/commands.doc
+++ b/ui/commands.doc
@@ -601,25 +601,6 @@ freeaverage $nv uwTrans $s sol $nv unTrans $s sol;
 */
 /****************************************************************************/
 
-/****************************************************************************/
-/** \page changemc  changemc - Change magic cookie of multigrid
-
- \section Description
-   This function changes the magic cookie of multigrid.
-
-\section Syntax
-   'changemc \<mc>'
-   
-  <li> \<mc>				- new magic cookie
-   
- \section Keywords
-   multigrid, load, read, file, data
-
-   SEE ALSO:
-   'save'
-*/
-/****************************************************************************/
-
 /****************************************************************************/
 /** \page  level level - Select another current level
 
-- 
GitLab