Skip to content

Commit aa2fbcb

Browse files
committed
Remove dead code for calculation engine server.
Not used for ages.
1 parent f553d4d commit aa2fbcb

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

diffpy/pdfgui/control/calculation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class Calculation(PDFComponent):
2828
2929
Data members:
3030
31-
serverFactory -- class used for creating PdfFit engine server
32-
serverFactoryArgs -- tuple of arguments passed to serverFactory
3331
rmin -- read-only lower boundary of rcalc, change with setRGrid()
3432
rstep -- read-only r-grid step, use setRGrid() to change it
3533
rmax -- read-only upper boundary of rcalc, change with setRGrid()

diffpy/pdfgui/gui/mainframe.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class MainFrame(wx.Frame):
107107
mode.
108108
"addingdata" -- This mode is for adding data.
109109
"addingphase" -- This mode is for adding the phase
110-
"config" -- This mode is used for preferences and server
110+
"config" -- This mode is used for preferences and structure viewer
111111
configuration.
112112
"rseries" -- The mode used when configuring an r-series macro.
113113
"tseries" -- The mode used when configuring a temperature series
@@ -141,7 +141,6 @@ class MainFrame(wx.Frame):
141141
* Panels specific to other program modes
142142
"adddata" -- The panel used in 'addingdata' mode
143143
"addphase" -- The panel used in 'addingphase' mode
144-
"serverconfig" -- The panel used in 'config' mode
145144
146145
* Panels for future implementation
147146
"configuration" -- Another 'config' mode panel
@@ -463,9 +462,6 @@ def __setupMainMenu(self):
463462
"Paste &Linked Fit", "", wx.ITEM_NORMAL)
464463
self.editMenu.AppendItem(self.pasteLinkItem)
465464
self.editMenu.AppendSeparator()
466-
#self.servItem = wx.MenuItem(self.editMenu, wx.NewId(),
467-
# "&Server Configuration", "", wx.ITEM_NORMAL)
468-
#self.editMenu.AppendItem(self.servItem)
469465
self.prefItem = wx.MenuItem(self.editMenu, wx.NewId(),
470466
"&Preferences", "", wx.ITEM_NORMAL)
471467
self.editMenu.AppendItem(self.prefItem)
@@ -706,7 +702,6 @@ def __menuBindings(self):
706702
wx.EVT_MENU(self, self.copyId, self.onCopy)
707703
wx.EVT_MENU(self, self.pasteId, self.onPaste)
708704
wx.EVT_MENU(self, self.pasteLinkId, self.onPasteLink)
709-
#wx.EVT_MENU(self, self.servItem.GetId(), self.onServerConfig)
710705
wx.EVT_MENU(self, self.prefItem.GetId(), self.onPreferences)
711706

712707
## View menu
@@ -1911,16 +1906,6 @@ def onPreferences(self, event):
19111906
self.switchRightPanel("preferences")
19121907
return
19131908

1914-
1915-
def onServerConfig(self, event):
1916-
"""Switch the right panel to the 'serverconfig' panel.
1917-
1918-
The 'serverconfig' panel uses the 'config' mode.
1919-
"""
1920-
self.setMode("config")
1921-
self.switchRightPanel("serverconfig")
1922-
return
1923-
19241909
def onDefaultLayout(self, event):
19251910
"""Place the fit tree and plot panel in default locations."""
19261911
from diffpy.pdfgui.gui.windowperspective import default

diffpy/pdfgui/gui/menuitems.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Edit
1717
_____________________________
1818
Journal Ctrl-j
1919
-----------------------------
20-
Preferences -- Contains server configuration
20+
Preferences -- Contains structure viewer configuration
2121
_____________________________
2222

2323

0 commit comments

Comments
 (0)