dtmail: remove DEAD_WOOD code
This commit is contained in:
@@ -45,10 +45,6 @@
|
||||
#ifndef _ALIASLISTUIITEM_HH
|
||||
#define _ALIASLISTUIITEM_HH
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
extern void handleDoubleSelection(Widget w, XtPointer clientdata, XtPointer calldata);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
// CLASS AliasListUiItem
|
||||
// derived class for prop sheet glue items for textfield
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
@@ -54,19 +54,8 @@ class AntiCheckBoxUiItem : public CheckBoxUiItem {
|
||||
public:
|
||||
AntiCheckBoxUiItem(Widget w, int source, char *search_key);
|
||||
virtual ~AntiCheckBoxUiItem(){;}; // we don't alloc any memory
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int getType(){ return _ANTICHECKBOX_ITEM; };
|
||||
virtual int getSource(){ return data_source; };
|
||||
#endif /* DEAD_WOOD */
|
||||
virtual void writeFromUiToSource();
|
||||
virtual void writeFromSourceToUi();
|
||||
|
||||
private:
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
int data_source;
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -55,17 +55,8 @@ class CheckBoxUiItem : public PropUiItem {
|
||||
public:
|
||||
CheckBoxUiItem(Widget w, int source, char *search_key);
|
||||
virtual ~CheckBoxUiItem(){;}; // we don't alloc any memory
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int getType(){ return _CHECKBOX_ITEM; };
|
||||
virtual int getSource(){ return data_source; };
|
||||
#endif /* DEAD_WOOD */
|
||||
virtual void writeFromUiToSource();
|
||||
virtual void writeFromSourceToUi();
|
||||
|
||||
private:
|
||||
#ifdef DEAD_WOOD
|
||||
int data_source;
|
||||
#endif /* DEAD_WOOD */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,9 +45,6 @@
|
||||
#ifndef _CUSTOMLISTUIITEM_HH
|
||||
#define _CUSTOMLISTUIITEM_HH
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
void handleDoubleSelection(Widget w, XtPointer clientdata, XtPointer calldata);
|
||||
#endif /* DEAD_WOOD */
|
||||
// CLASS CustomListUiItem
|
||||
// derived class for prop sheet glue items for textfield
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
@@ -40,9 +40,6 @@
|
||||
*
|
||||
*+ENOTICE
|
||||
*/
|
||||
#ifndef I_HAVE_NO_IDENT
|
||||
#endif
|
||||
|
||||
#ifndef _DTMAIL_HH
|
||||
#define _DTMAIL_HH
|
||||
|
||||
@@ -227,9 +224,6 @@ class DtMail {
|
||||
BusyApplicationCallback,
|
||||
void * client_data);
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
void unregisterBusyCallback(DtMailEnv &);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
void setBusyState(DtMailEnv &, DtMailBusyState busy_state);
|
||||
|
||||
@@ -530,11 +524,6 @@ class DtMail {
|
||||
virtual BodyPart * newBodyPart(DtMailEnv &,
|
||||
BodyPart * after) = 0;
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
virtual void newBodyPartOrder(DtMailEnv &,
|
||||
BodyPart * new_order,
|
||||
const int bodypart_count) = 0;
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
virtual void setFlag(DtMailEnv &,
|
||||
const DtMailMessageState) = 0;
|
||||
@@ -699,9 +688,6 @@ class DtMail {
|
||||
virtual char *csFromContentType(DtMailValueSeq & value) = 0;
|
||||
// End of For CHARSET
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
virtual DtMailChecksumState checksum(DtMailEnv &) = 0;
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
protected:
|
||||
BodyPart(DtMailEnv &, Message * parent);
|
||||
@@ -793,9 +779,6 @@ class DtMail {
|
||||
virtual void unlock() = 0;
|
||||
virtual void save() = 0;
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int messageCount(DtMailEnv & error) = 0;
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
virtual DtMailMessageHandle getFirstMessageSummary(
|
||||
DtMailEnv & error,
|
||||
|
||||
@@ -193,15 +193,6 @@ public:
|
||||
//
|
||||
void logError(DtMailBoolean criticalError,
|
||||
const char *format, ...) const;
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
//
|
||||
// This one is the same as logError() plus it sets _fatal.
|
||||
//
|
||||
void logFatalError(DtMailBoolean criticalError,
|
||||
const char *format, ...);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
//
|
||||
// Set the error code. Tt_message is optional.
|
||||
//
|
||||
@@ -303,10 +294,6 @@ protected:
|
||||
void setCPP(CPPclearF, CPPmessageF, CPPerrorF);
|
||||
|
||||
void implClear();
|
||||
#ifdef DEAD_WOOD
|
||||
const char * implGetMessage();
|
||||
int implGetError();
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
private:
|
||||
DTMailError_t _error; // The corrected error number.
|
||||
@@ -422,13 +409,5 @@ DtMailEnv::implClear()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
inline Tt_message
|
||||
DtMailError_getTTmsg(DtMailEnv & error)
|
||||
{
|
||||
return((const Tt_message)error); // The prefered way.
|
||||
}
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
#endif // _DTCM_HH
|
||||
#endif // _DTMAILERROR_HH
|
||||
|
||||
|
||||
@@ -97,14 +97,8 @@ class DtMailValue : public DtCPlusPlusAllocator {
|
||||
virtual const char * operator= (const char *);
|
||||
|
||||
virtual DtMailValueDate toDate(void);
|
||||
#ifdef DEAD_WOOD
|
||||
virtual void fromDate(const DtMailValueDate &);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
virtual DtMailAddressSeq * toAddress(void);
|
||||
#ifdef DEAD_WOOD
|
||||
virtual void fromAddress(const DtMailAddressSeq & list);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
// This method gives the raw format used to store the value.
|
||||
//
|
||||
|
||||
@@ -60,10 +60,6 @@ class FileShare : public DtCPlusPlusAllocator {
|
||||
DtMailBoolean readOnly(DtMailEnv & error);
|
||||
DtMailBoolean readWriteOverride(DtMailEnv & error);
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
DtMailBoolean locked(void);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
private:
|
||||
struct TTHandle : public DtCPlusPlusAllocator {
|
||||
DtMail::Session *session;
|
||||
|
||||
@@ -84,19 +84,12 @@ class IndexedOptionMenuUiItem : public PropUiItem {
|
||||
public:
|
||||
IndexedOptionMenuUiItem(IndexedOptionMenu *iom, int source, char *search_key);
|
||||
virtual ~IndexedOptionMenuUiItem(){;}; // we don't alloc any memory
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int getType(){ return _INDEXED_OPTIONMENU_ITEM; };
|
||||
virtual int getSource(){ return data_source; };
|
||||
#endif /* DEAD_WOOD */
|
||||
virtual void writeFromUiToSource();
|
||||
virtual void writeFromSourceToUi();
|
||||
|
||||
private:
|
||||
static void valueChangedCB(Widget, XtPointer, XtPointer);
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
int data_source;
|
||||
#endif /* DEAD_WOOD */
|
||||
IndexedOptionMenu *_iom;
|
||||
};
|
||||
|
||||
|
||||
@@ -53,10 +53,6 @@ class ListUiItem : public PropUiItem {
|
||||
public:
|
||||
ListUiItem(Widget w, int source, char *search_key, DtVirtArray<char *> *alias_list);
|
||||
virtual ~ListUiItem(){;}; // we don't alloc any memory
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int getType(){ return _LIST_ITEM; };
|
||||
virtual int getSource(){ return data_source; };
|
||||
#endif /* DEAD_WOOD */
|
||||
virtual void writeFromUiToSource();
|
||||
virtual void writeFromSourceToUi();
|
||||
virtual void AddDefaults();
|
||||
@@ -64,11 +60,6 @@ public:
|
||||
virtual void handleAddButtonPress(){;};
|
||||
virtual void handleChangeButtonPress(){;};
|
||||
virtual void handleDeleteButtonPress(){;};
|
||||
|
||||
private:
|
||||
#ifdef DEAD_WOOD
|
||||
int data_source;
|
||||
#endif /* DEAD_WOOD */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -53,17 +53,9 @@ class ScaleUiItem : public PropUiItem {
|
||||
public:
|
||||
ScaleUiItem(Widget w, int source, char *search_key);
|
||||
virtual ~ScaleUiItem(){;}; // we don't alloc any memory
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int getType(){ return _SCALE_ITEM; };
|
||||
virtual int getSource(){ return data_source; };
|
||||
#endif /* DEAD_WOOD */
|
||||
virtual void writeFromUiToSource();
|
||||
virtual void writeFromSourceToUi();
|
||||
|
||||
private:
|
||||
#ifdef DEAD_WOOD
|
||||
int data_source;
|
||||
#endif /* DEAD_WOOD */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -53,17 +53,8 @@ class SpinBoxUiItem : public PropUiItem {
|
||||
public:
|
||||
SpinBoxUiItem(Widget w, int source, char *search_key);
|
||||
virtual ~SpinBoxUiItem(){;}; // we don't alloc any memory
|
||||
#ifdef DEAD_WOOD
|
||||
virtual int getType(){ return _SPINBOX_ITEM; };
|
||||
virtual int getSource(){ return data_source; };
|
||||
#endif /* DEAD_WOOD */
|
||||
virtual void writeFromUiToSource();
|
||||
virtual void writeFromSourceToUi();
|
||||
|
||||
private:
|
||||
#ifdef DEAD_WOOD
|
||||
int data_source;
|
||||
#endif /* DEAD_WOOD */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -45,9 +45,6 @@
|
||||
#ifndef _TEMPLATESLISTUIITEM_HH
|
||||
#define _TEMPLATESLISTUIITEM_HH
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
extern void handleDoubleSelection(Widget w, XtPointer clientdata, XtPointer calldata);
|
||||
#endif /* DEAD_WOOD */
|
||||
// CLASS TemplateListUiItem
|
||||
// derived class for prop sheet glue items for textfield
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
@@ -148,13 +148,6 @@ class Condition : public DtCPlusPlusAllocator {
|
||||
void wait(void);
|
||||
|
||||
void waitTrue(void);
|
||||
#ifdef DEAD_WOOD
|
||||
void waitFalse(void);
|
||||
void waitFor(int);
|
||||
void waitGT(int); // wait >
|
||||
void waitLT(int); // wait <
|
||||
void waitProcStatus(void);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
private:
|
||||
void * _mutex;
|
||||
|
||||
@@ -116,12 +116,6 @@ class Cmd {
|
||||
void deactivate(); // Deactivate this object
|
||||
char *getLabel() { return _label; }
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
// Functions to register dependent commands
|
||||
|
||||
void addToActivationList ( Cmd * );
|
||||
void addToDeactivationList ( Cmd * );
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
// Register an UIComponent used to execute this command
|
||||
|
||||
|
||||
@@ -114,9 +114,6 @@
|
||||
|
||||
char *getHelpId(Widget);
|
||||
void printHelpId(char *, Widget);
|
||||
#ifdef DEAD_WOOD
|
||||
void HelpMenuCB(Widget, XtPointer, XtPointer);
|
||||
#endif /* DEAD_WOOD */
|
||||
void HelpCB(Widget, XtPointer, XtPointer);
|
||||
void HelpTexteditCB( Widget, XtPointer, XtPointer ) ;
|
||||
extern void DisplayMain(Widget, char *, char *);
|
||||
|
||||
@@ -90,9 +90,6 @@ class CmdList;
|
||||
|
||||
class MenuBar : public UIComponent {
|
||||
protected:
|
||||
#ifdef DEAD_WOOD
|
||||
virtual Boolean isValidMenuPane(Widget);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
virtual Widget createPulldown ( Widget, CmdList *,
|
||||
Boolean, unsigned char);
|
||||
|
||||
@@ -86,9 +86,4 @@ class QuestionDialogManager : public DialogManager {
|
||||
|
||||
QuestionDialogManager ( char * );
|
||||
};
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
extern QuestionDialogManager *theQuestionDialogManager;
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
#endif
|
||||
|
||||
@@ -99,11 +99,6 @@ class UIComponent : public BasicComponent {
|
||||
// Called by widgetDestroyedCallback() if base widget is destroyed
|
||||
virtual void widgetDestroyed();
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
// Loads component's default resources into database
|
||||
void setDefaultResources ( const Widget , const String *);
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
// Retrieve resources for this clsss from the resource manager
|
||||
void getResources ( const XtResourceList, const int );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user