remove unused functions

This commit is contained in:
pavlov%netscape.com 2000-04-25 01:58:51 +00:00
parent 5cd78b5bfb
commit e8ea88b69a
3 changed files with 6 additions and 14 deletions

View File

@ -119,7 +119,7 @@ void nsGCCache::Flush(unsigned long flags)
}
}
GdkGC *nsGCCache::GetGCFromDW(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion)
GdkGC *nsGCCache::GetGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion)
{
PRCList *iter;

View File

@ -55,15 +55,7 @@ class nsGCCache
void Flush(unsigned long flags);
GdkGC *GetGCFromDW(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion);
GdkGC *GetClipGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion) {
return GetGCFromDW(window, gcv, flags, clipRegion);
}
GdkGC *GetGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags) {
return GetGCFromDW(window, gcv, flags, NULL);
}
GdkGC *GetGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion);
private:
PRCList GCCache;

View File

@ -505,7 +505,7 @@ void nsRenderingContextGTK::UpdateGC()
mClipRegion->GetNativeRegion((void*&)rgn);
}
mGC = gcCache.GetClipGC(mSurface->GetDrawable(),
mGC = gcCache.GetGC(mSurface->GetDrawable(),
&values,
valuesMask,
rgn);