VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/vboxdeps.cpp@ 101975

最後變更 在這個檔案從101975是 101928,由 vboxsync 提交於 13 月 前

libs/xpcom: Remove unused code in nsDeque.{cpp,h}, bugref:10545 [fix]

  • 屬性 svn:keywords 設為 Id
檔案大小: 1.5 KB
 
1/* The usual story: drag stuff from the libraries into the link. */
2
3
4#include <plstr.h>
5#include <prio.h>
6#include <nsDeque.h>
7#include <nsHashSets.h>
8#include <xptcall.h>
9#include <nsProxyRelease.h>
10#include "xpcom/proxy/src/nsProxyEventPrivate.h"
11#include "nsTraceRefcnt.h"
12#include "nsDebug.h"
13#include "nsString.h"
14
15uintptr_t deps[] =
16{
17 (uintptr_t)PL_strncpy,
18 (uintptr_t)PL_strrchr,
19 (uintptr_t)PL_strncpyz,
20 (uintptr_t)PL_HashString,
21 (uintptr_t)PR_Close,
22 (uintptr_t)NS_ProxyRelease,
23 (uintptr_t)nsTraceRefcnt::LogRelease,
24 (uintptr_t)nsDebug::Assertion,
25 0
26};
27
28class foobardep : public nsXPTCStubBase
29{
30public:
31 NS_IMETHOD_(nsrefcnt) AddRef(void)
32 {
33 return 1;
34 }
35
36 NS_IMETHOD_(nsrefcnt) Release(void)
37 {
38 return 0;
39 }
40
41 NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
42 {
43 (void)info;
44 return 0;
45 }
46
47 // call this method and return result
48 NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
49 {
50 (void)methodIndex;
51 (void)info;
52 (void)params;
53 return 0;
54 }
55
56};
57
58
59
60void foodep(void)
61{
62 nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
63 a->Init(123);
64 nsDeque *b = new nsDeque();
65
66 //nsXPTCStubBase
67 nsProxyEventObject *c = new nsProxyEventObject();
68 c->Release();
69
70 foobardep *d = new foobardep();
71 nsXPTCStubBase *e = d;
72 e->Release();
73
74 // Dragged in by TestCRT.
75 nsAutoString t1;
76 t1.AssignWithConversion(NULL);
77}
78
79
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette