[commit] r1423 - trunk/GME/Mga
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Jul 22 15:47:48 CDT 2011
Author: ksmyth
Date: Fri Jul 22 15:47:48 2011
New Revision: 1423
Log:
Remove dead code
Modified:
trunk/GME/Mga/MgaCoreObj.h
Modified: trunk/GME/Mga/MgaCoreObj.h
==============================================================================
--- trunk/GME/Mga/MgaCoreObj.h Fri Jul 22 11:09:05 2011 (r1422)
+++ trunk/GME/Mga/MgaCoreObj.h Fri Jul 22 15:47:48 2011 (r1423)
@@ -52,12 +52,6 @@
ICoreObject *&ComPtr() { ASSERT(!p); return p; }
- CComVariant CachedAttr(attrid_type id) { // the compiler is supposed to optimize this!!!
- CComVariant rv;
- COMTHROW(p->get_LoadedAttrValue(id, &rv));
- return rv;
- }
-
metaid_type GetMetaID() const {
metaid_type t;
CComPtr<ICoreMetaObject> mmo;
@@ -74,7 +68,8 @@
bool IsDeleted() const {
VARIANT_BOOL pp;
- if((*this)->get_IsDeleted(&pp) != S_OK) return true;
+ if((*this)->get_IsDeleted(&pp) != S_OK)
+ return true;
return pp ? true:false;
}
@@ -179,11 +174,6 @@
COMTHROW(p->get_AttributeValue(i,&k));
return k;
};
- CComVariant CachedVar() {
- CComVariant rv; // the compiler is supposed to optimize this!!!
- COMTHROW(p->get_LoadedAttrValue(i, &rv));
- return rv;
- }
inline operator CoreObj () const {
CComVariant k;
COMTHROW(p->get_AttributeValue(i,&k));
@@ -200,14 +190,6 @@
return CoreObjs(k.pdispVal);
};
- inline CoreObjs CachedColl() const {
- CComVariant k;
- COMTHROW(p->get_LoadedAttrValue(i, &k));
- if(k.vt != VT_DISPATCH) COMTHROW(E_MGA_MODULE_INCOMPATIBILITY);
- ASSERT(k.pdispVal);
- return CoreObjs(k.pdispVal);
- }
-
inline CoreObj Search(attrid_type attr, VARIANT sval) {
CoreObj o;
COMTHROW(p->SearchCollection(i, attr, sval, &o.ComPtr()));
More information about the gme-commit
mailing list