mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 03:34:06 +00:00
remove unused functions
This commit is contained in:
parent
5cd78b5bfb
commit
e8ea88b69a
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -505,7 +505,7 @@ void nsRenderingContextGTK::UpdateGC()
|
||||
mClipRegion->GetNativeRegion((void*&)rgn);
|
||||
}
|
||||
|
||||
mGC = gcCache.GetClipGC(mSurface->GetDrawable(),
|
||||
mGC = gcCache.GetGC(mSurface->GetDrawable(),
|
||||
&values,
|
||||
valuesMask,
|
||||
rgn);
|
||||
|
Loading…
Reference in New Issue
Block a user