SysMon: remove dead code
[AROS.git] / workbench / utilities / MultiView / arossupport.c
blob62a896b3bcc78e5d31710dce2a9993e30ab96308
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #ifndef __AROS__
11 #include "arossupport.h"
12 #include <dos/dostags.h>
14 #include <datatypes/datatypesclass.h>
15 #ifndef STM_DONE
16 #define STM_DONE 0
17 #endif
19 #include <utility/tagitem.h>
21 #include <proto/utility.h>
23 ULONG *FindMethod(ULONG *methods, ULONG searchmethodid)
25 if(methods == NULL)
26 return NULL;
28 while(((LONG)(*methods)) != -1)
30 if(*methods == searchmethodid)
31 return methods;
33 methods++;
36 return NULL;
38 } /* FindMethod */
40 struct DTMethod *FindTriggerMethod(struct DTMethod *methods, STRPTR command, ULONG method)
42 struct DTMethod *retval = NULL;
44 if (methods)
46 while(methods->dtm_Method != STM_DONE)
48 if(command != NULL)
50 if(Stricmp(methods->dtm_Command, command) == 0)
52 retval = methods;
53 break;
57 if(method != ~0)
59 if(methods->dtm_Method == method)
61 retval = methods;
62 break;
66 methods++;
70 return retval;
72 } /* FindTriggerMethod */
73 #endif /* __AROS__ */