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; PRCList *iter;

View File

@ -55,15 +55,7 @@ class nsGCCache
void Flush(unsigned long flags); void Flush(unsigned long flags);
GdkGC *GetGCFromDW(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion); GdkGC *GetGC(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);
}
private: private:
PRCList GCCache; PRCList GCCache;

View File

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